pub struct Rigid {
pub rotation: DQuat,
pub translation: DVec3,
}Expand description
The rigid (Euclidean) group SE(3): rotation + translation.
Fields§
§rotation: DQuatThe rotation part.
translation: DVec3The translation part.
Implementations§
Source§impl Rigid
impl Rigid
Sourcepub fn from_rotation(rotation: DQuat) -> Self
pub fn from_rotation(rotation: DQuat) -> Self
A pure rotation.
Sourcepub fn from_translation(translation: DVec3) -> Self
pub fn from_translation(translation: DVec3) -> Self
A pure translation.
Sourcepub fn from_axis_angle(axis: DVec3, angle: f64) -> Self
pub fn from_axis_angle(axis: DVec3, angle: f64) -> Self
A pure rotation of angle radians about axis (normalized internally).
Trait Implementations§
impl Copy for Rigid
Source§impl From<Rigid> for Similarity
impl From<Rigid> for Similarity
Source§impl From<Translation> for Rigid
impl From<Translation> for Rigid
Source§fn from(t: Translation) -> Self
fn from(t: Translation) -> Self
Converts to this type from the input type.
Source§impl Interpolatable for Rigid
impl Interpolatable for Rigid
impl StructuralPartialEq for Rigid
Auto Trait Implementations§
impl Freeze for Rigid
impl RefUnwindSafe for Rigid
impl Send for Rigid
impl Sync for Rigid
impl Unpin for Rigid
impl UnsafeUnpin for Rigid
impl UnwindSafe for Rigid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
§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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformedExt for T
impl<T> TransformedExt for T
Source§fn transformed<G>(self, transform: G) -> Transformed<Self, G>
fn transformed<G>(self, transform: G) -> Transformed<Self, G>
Return
self wrapped with transform stored exactly as G.