pub struct JointState {
pub position: Position3D,
pub rotation: Rotation3D,
pub confidence: f32,
}Expand description
Joint state (position + rotation + confidence)
Fields§
§position: Position3D§rotation: Rotation3D§confidence: f32Implementations§
Source§impl JointState
impl JointState
pub fn new(position: Position3D, rotation: Rotation3D, confidence: f32) -> Self
pub fn lerp(&self, other: &JointState, t: f32) -> JointState
Trait Implementations§
Source§impl Clone for JointState
impl Clone for JointState
Source§fn clone(&self) -> JointState
fn clone(&self) -> JointState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JointState
impl Debug for JointState
Source§impl Default for JointState
impl Default for JointState
Source§fn default() -> JointState
fn default() -> JointState
Returns the “default value” for a type. Read more
impl Copy for JointState
Auto Trait Implementations§
impl Freeze for JointState
impl RefUnwindSafe for JointState
impl Send for JointState
impl Sync for JointState
impl Unpin for JointState
impl UnsafeUnpin for JointState
impl UnwindSafe for JointState
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