Skip to main content

translate_detector_coords

Function translate_detector_coords 

Source
pub fn translate_detector_coords(
    coords: &SmallVec<[f64; 2]>,
    offset: IVec2,
) -> SmallVec<[f64; 2]>
Expand description

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