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

\ingroup Functions Provides the corrected camera ray intercepting the specified point on the image for a particular device.

Given a point on the image, LeapPixelToRectilinearEx() corrects for camera distortion and returns the true direction from the camera to the source of that image point within the Devices 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 coordinate system.

@param hConnection The connection handle created by LeapCreateConnection(). @param hDevice A device handle returned by LeapOpenDevice(). @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 5.4.0