pub unsafe extern "C" fn LeapPixelToRectilinear(
    hConnection: LEAP_CONNECTION,
    camera: eLeapPerspectiveType,
    pixel: LEAP_VECTOR
) -> LEAP_VECTOR
Expand description

\ingroup Functions Provides the corrected camera ray intercepting the specified point on the image.

Given a point on the image, LeapPixelToRectilinear() corrects for camera distortion and returns the true direction from the camera to the source of that image point within the Ultraleap Tracking camera field of view.

This direction vector has an x and y component [x, y, 1], with the third element always 1. Note that this vector uses the 2D camera coordinate system where the x-axis parallels the longer (typically horizontal) dimension and the y-axis parallels the shorter (vertical) dimension. The camera coordinate system does not correlate to the 3D Ultraleap Tracking coordinate system.

@param hConnection The connection handle created by LeapCreateConnection(). @param camera The camera to use, a member of the eLeapPerspectiveType enumeration @param pixel A Vector containing the position of a pixel in the image. @returns A Vector containing the ray direction (the z-component of the vector is always 1). @since 3.1.3