Spocalc is already somewhat a library. I just add to it when necessary.
You might be able to tell if those were 2 or 3 cross based on the angle which the spoke grooves are formed, coming out of the spoke holes. To me, based on your photo it looks like the crossings were different for front and rear. Maybe 2 and 1, or 3 and 2.