detector_basis_vectors_lab#
- anri.geom.detector_basis_vectors_lab(det_trans, beam_cen_shift, x_distance_shift)[source]#
Get the detector’s pixel steps and pixel (0, 0) position in the laboratory frame.
Needed for
raytrace_to_det(). The steps are computed directly from the detector transform, not as differences of pixel positions: positions are ~distance away from the origin, so subtracting them loses precision in float32 (about 2e-4 relative for a 75 um pixel at 150 mm).- Parameters:
det_trans (
Array) – [3,3] detector transformation matrix fromdetector_transforms()beam_cen_shift (
Array) – [3] beam center shift fromdetector_transforms()x_distance_shift (
Array) – [3] X distance shift fromdetector_transforms()
- Returns: