pub struct FramePose {
pub origin_m: [f64; 3],
pub rotation_xyzw: [f64; 4],
}Expand description
Active local-to-parent rigid pose (rotation_xyzw unit Hamilton quaternion).
Fields§
§origin_m: [f64; 3]§rotation_xyzw: [f64; 4]Implementations§
Source§impl FramePose
impl FramePose
pub fn identity() -> Self
pub fn from_block(block: Block<'_>) -> Result<Self, Error>
Sourcepub fn validated(self) -> Result<Self, Error>
pub fn validated(self) -> Result<Self, Error>
Admits raw norm-squared within 1e-12 and normalizes derived quaternion.
Sourcepub fn rotation_matrix(self) -> [[f64; 3]; 3]
pub fn rotation_matrix(self) -> [[f64; 3]; 3]
Active 3x3 rotation matrix R(q) mapping local vector components to parent frame.
pub fn transform_point(self, local: [f64; 3]) -> [f64; 3]
pub fn transform_vector(self, local: [f64; 3]) -> [f64; 3]
pub fn inverse_transform_vector(self, parent: [f64; 3]) -> [f64; 3]
Trait Implementations§
impl Copy for FramePose
impl StructuralPartialEq for FramePose
Auto Trait Implementations§
impl Freeze for FramePose
impl RefUnwindSafe for FramePose
impl Send for FramePose
impl Sync for FramePose
impl Unpin for FramePose
impl UnsafeUnpin for FramePose
impl UnwindSafe for FramePose
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more