geom#
Geometry transforms to and from laboratory, detector, and sample frames.
Functions
|
Convert detector (sc, fc) coordinates to lab (lx, ly, lz) coordinates. |
|
Get laboratory basis vectors for detector (slow, fast, normal). |
|
Return a matrix that transforms detector (slow, fast) pixel values to (z_det, y_det). |
|
Return a 3D orientation matrix that transforms a point in the detector reference frame to the lab frame. |
|
Return all transformations required to convert from detector pixel to lab space. |
|
Convert lab (lx, ly, lz) coordinates to detector (sc, fc) coordinates. |
|
Ray-trace from vector in lab frame (unknown length) to detector coordinates (sc, fc). |
|
Convert from lab to sample coordinates (apply the diffractometer stack). |
|
Convert from sample to lab coordinates (apply the diffractometer stack). |
|
Return rotation matrix for positive right-handed rotation about axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the X axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the Y axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the Z axis by angle (degrees). |