I'm having a bit of a brain fart, and just can't get this to work.
How can I convert absolute cartesian coordinates to monoclinic coordinates?
I've put together a structure using regular cartesian coordinates, and upon inspection, the symmetry is monoclinic, with be~=111 deg.
What is the transformation to go from (x,y,z) -> (x', y', z')? (and thence to fractional coordinates)
I've derived a couple of methods, and I'm getting some ridiculous results, and I don't know if that's because my derivation is wrong, or my arithmetic.
One matrix I've got is this:
[ 1 0 -cot(be) ] [x] [x']
[ 0 1 0 ] [y] = [y']
[ 0 0 csc(be) ] [z] [z']