[][src]Function leap_sys::LeapInterpolateHeadPose

pub unsafe extern "C" fn LeapInterpolateHeadPose(
    hConnection: LEAP_CONNECTION,
    timestamp: i64,
    pEvent: *mut LEAP_HEAD_POSE_EVENT
) -> eLeapRS

\ingroup Functions Gets the head tracking pose at the specified timestamp by interpolating between measured frames.

Caller is responsible for allocating a buffer large enough to hold the data of the frame. Use LeapGetFrameSize() to calculate the minimum size of this buffer.

Use LeapCreateClockRebaser(), LeapUpdateRebase(), and LeapRebaseClock() to synchronize time measurements in the application with time measurements in the Leap Motion service. This process is required to achieve accurate, smooth interpolation. @param hConnection The connection handle created by LeapCreateConnection(). @param timestamp The timestamp at which to interpolate the frame data. @param[out] pEvent A pointer to a flat buffer which is filled with an interpolated frame. @returns The operation result code, a member of the eLeapRS enumeration. @since 3.1.1