pub struct BodyData {Show 13 fields
pub tracking_id: u64,
pub is_tracked: bool,
pub is_restricted: bool,
pub hand_left_state: HandState,
pub hand_right_state: HandState,
pub hand_left_confidence: TrackingConfidence,
pub hand_right_confidence: TrackingConfidence,
pub clipped_edges: FrameEdges,
pub lean: PointF,
pub lean_tracking_state: TrackingState,
pub is_engaged: bool,
pub joints: Vec<Joint>,
pub joint_orientations: Vec<JointOrientation>,
}Fields§
§tracking_id: u64§is_tracked: bool§is_restricted: bool§hand_left_state: HandState§hand_right_state: HandState§hand_left_confidence: TrackingConfidence§hand_right_confidence: TrackingConfidence§clipped_edges: FrameEdges§lean: PointF§lean_tracking_state: TrackingState§is_engaged: bool§joints: Vec<Joint>§joint_orientations: Vec<JointOrientation>Implementations§
Source§impl BodyData
impl BodyData
pub fn new(body: Body) -> Result<Self, Error>
Sourcepub fn get_joint_position(
&self,
joint_type: JointType,
) -> Option<CameraSpacePoint>
pub fn get_joint_position( &self, joint_type: JointType, ) -> Option<CameraSpacePoint>
Gets the position of a specific joint by joint type.
Sourcepub fn get_joint_orientation(&self, joint_type: JointType) -> Option<Vector4>
pub fn get_joint_orientation(&self, joint_type: JointType) -> Option<Vector4>
Gets the orientation of a specific joint by joint type.
Sourcepub fn is_actively_tracked(&self) -> bool
pub fn is_actively_tracked(&self) -> bool
Checks if the body is actively being tracked.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BodyData
impl RefUnwindSafe for BodyData
impl Send for BodyData
impl Sync for BodyData
impl Unpin for BodyData
impl UnwindSafe for BodyData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more