pub struct DTransformation {
pub rotation: NotNan<fsize>,
pub translation: (NotNan<fsize>, NotNan<fsize>),
}
Expand description
A proper rigid transformation, decomposed into a rotation followed by a translation.
Fields§
§rotation: NotNan<fsize>
The rotation in radians
translation: (NotNan<fsize>, NotNan<fsize>)
The translation in the x and y-axis
Implementations§
Trait Implementations§
Source§impl Clone for DTransformation
impl Clone for DTransformation
Source§fn clone(&self) -> DTransformation
fn clone(&self) -> DTransformation
Returns a copy 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 DTransformation
impl Debug for DTransformation
Source§impl Display for DTransformation
impl Display for DTransformation
Source§impl<T> From<T> for DTransformationwhere
T: Borrow<Transformation>,
impl<T> From<T> for DTransformationwhere
T: Borrow<Transformation>,
Source§impl Hash for DTransformation
impl Hash for DTransformation
Source§impl PartialEq for DTransformation
impl PartialEq for DTransformation
impl Copy for DTransformation
impl Eq for DTransformation
impl StructuralPartialEq for DTransformation
Auto Trait Implementations§
impl Freeze for DTransformation
impl RefUnwindSafe for DTransformation
impl Send for DTransformation
impl Sync for DTransformation
impl Unpin for DTransformation
impl UnwindSafe for DTransformation
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,
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