Skip to main content

pamoja_calibration_linear

Function pamoja_calibration_linear 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_calibration_linear( scale: f32, offset: f32, ) -> *mut PamojaCalibration
Expand description

Creates a calibration applying raw * scale + offset.

§Returns

A handle the caller must release with pamoja_calibration_free.

§Safety

The returned handle must be freed exactly once.