Struct leap_sys::_LEAP_TRACKING_EVENT
source · [−]#[repr(C, packed)]pub struct _LEAP_TRACKING_EVENT {
pub info: LEAP_FRAME_HEADER,
pub tracking_frame_id: i64,
pub nHands: u32,
pub pHands: *mut LEAP_HAND,
pub framerate: f32,
}
Expand description
\ingroup Structs A snapshot, or frame of data, containing the tracking data for a single moment in time. The LEAP_FRAME struct is the container for all the tracking data. @since 3.0.0
Fields
info: LEAP_FRAME_HEADER
A universal frame identification header. @since 3.0.0
tracking_frame_id: i64
An identifier for this tracking frame. This identifier is meant to be monotonically increasing, but values may be skipped if the client application does not poll for messages fast enough. This number also generally increases at the same rate as info.frame_id, but if the server cannot process every image received from the device cameras, the info.frame_id identifier may increase faster. @since 3.0.0
nHands: u32
The number of hands tracked in this frame, i.e. the number of elements in the pHands array. @since 3.0.0
pHands: *mut LEAP_HAND
A pointer to the array of hands tracked in this frame. @since 3.0.0
framerate: f32
Current tracking frame rate in hertz.
This frame rate is distinct from the image frame rate, which is the rate that images are being read from the device. Depending on host CPU limitations, the tracking frame rate may be substantially less than the device frame rate.
This number is generally equal to or less than the device frame rate, but there is one case where this number may be higher than the device frame rate: When the device rate drops. In this case, the device frame rate will fall sooner than the tracking frame rate.
This number is equal to zero if there are not enough frames to estimate frame rate.
This number cannot be negative. @since 3.0.0
Trait Implementations
sourceimpl Clone for _LEAP_TRACKING_EVENT
impl Clone for _LEAP_TRACKING_EVENT
sourcefn clone(&self) -> _LEAP_TRACKING_EVENT
fn clone(&self) -> _LEAP_TRACKING_EVENT
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for _LEAP_TRACKING_EVENT
impl Debug for _LEAP_TRACKING_EVENT
impl Copy for _LEAP_TRACKING_EVENT
Auto Trait Implementations
impl RefUnwindSafe for _LEAP_TRACKING_EVENT
impl !Send for _LEAP_TRACKING_EVENT
impl !Sync for _LEAP_TRACKING_EVENT
impl Unpin for _LEAP_TRACKING_EVENT
impl UnwindSafe for _LEAP_TRACKING_EVENT
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more