Skip to main content

translate_detector_coords

Function translate_detector_coords 

Source
pub fn translate_detector_coords(
    coords: &DetectorCoords,
    offset: IVec2,
) -> DetectorCoords
Expand description

Offsets a detector’s first two coordinates by a layout offset, leaving any further coordinates untouched.