pub fn convert_3d_to_2d(
        &self,
        source_point3d: &k4a_float3_t,
        source_camera: k4a_calibration_type_t,
        target_camera: k4a_calibration_type_t,
    ) -> Result<(k4a_float2_t, bool), Error> {
        let mut target_point2d = k4a_float2_t::default();
        let mut valid: i32 = 0;
        Error::from((self.api.k4a_calibration_3d_to_2d)(
            &self.calibration,
            source_point3d,
            source_camera,
            target_camera,
            &mut target_point2d,
            &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.
/// 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: &k4a_float3_t,
        source_camera: k4a_calibration_type_t,
        target_camera: k4a_calibration_type_t,
    ) -> Result<(k4a_float2_t, bool), Error> {
        let mut target_point2d = k4a_float2_t::default();
        let mut valid: i32 = 0;
        Error::from((self.api.k4a_calibration_3d_to_2d)(
            &self.calibration,
            source_point3d,
            source_camera,
            target_camera,
            &mut target_point2d,
            &mut valid,
        ))
        .to_result((target_point2d, valid != 0))
    }
pub fn convert_3d_to_2d ( & self , source_point3d : & k4a_float3_t , source_camera : k4a_calibration_type_t , target_camera : k4a_calibration_type_t , ) -> Result < ( k4a_float2_t , bool ) , Error > { let mut target_point2d = k4a_float2_t :: default ( ) ; let mut valid : i32 = 0 ; Error :: from ( ( self . api . k4a_calibration_3d_to_2d ) ( & self . calibration , source_point3d , source_camera , target_camera , & mut target_point2d , & 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
&k4a_float3_t
source_camera
k4a_calibration_type_t
target_camera
k4a_calibration_type_t