/// Transform a 3d point of a source coordinate system into a 2d pixel coordinate of the target camera.
/// Returns false if the point is invalid in the target coordinate system (and therefore target_point2d should not be used)
Transform a 3d point of a source coordinate system into a 2d pixel coordinate of the target camera.
Returns false if the point is invalid in the target coordinate system (and therefore target_point2d should not be used)
Transform a 3d point of a source coordinate system into a 2d pixel coordinate of the target camera . Returns false if the point is invalid in the target coordinate system ( and therefore target_point2d should not be used )
pub fn convert_3d_to_2d(
        &self,
        source_point3d: &Float3,
        source_camera: CalibrationType,
        target_camera: CalibrationType,
    ) -> Result<(Float2, bool), Error> {
        let mut target_point2d = Float2::default();
        let mut valid: i32 = 0;
        Error::from_k4a_result_t(unsafe {
            (self.api.funcs.k4a_calibration_3d_to_2d)(
                &self.calibration,
                &source_point3d.value,
                source_camera.into(),
                target_camera.into(),
                &mut target_point2d.value,
                &mut valid,
            )
        })
        .to_result((target_point2d, valid != 0))
    }
pub fn convert_3d_to_2d ( & self , source_point3d : & Float3 , source_camera : CalibrationType , target_camera : CalibrationType , ) -> Result < ( Float2 , bool ) , Error > { let mut target_point2d = Float2 :: default ( ) ; let mut valid : i32 = 0 ; Error :: from_k4a_result_t ( unsafe { ( self . api . funcs . k4a_calibration_3d_to_2d ) ( & self . calibration , & source_point3d . value , source_camera . into ( ) , target_camera . into ( ) , & mut target_point2d . value , & mut valid , ) } ) . to_result ( ( target_point2d , valid != 0 ) ) }
Transform a 3d point of a source coordinate system into a 2d pixel coordinate of the target camera.
Transform a 3d point of a source coordinate system into a 2d pixel coordinate of the target camera .
&self
source_point3d
&Float3
source_camera
CalibrationType
target_camera
CalibrationType