Struct libreda_db::prelude::ComplexTransform
source · [−]pub struct ComplexTransform<T> where
T: CoordinateType, {
mirror: bool,
rotation: f64,
magnification: f64,
displacement: Vector<T>,
}
Expand description
Transformation described by a mirroring at the x
axis,
then a rotation around the origin, then a scaling, then a translation.
This transformation allows rotations by arbitrary angles.
Fields
mirror: bool
Mirror at x
-axis?
rotation: f64
Rotation by an arbitrary angle (radians).
magnification: f64
Scaling.
displacement: Vector<T>
Translation.
Trait Implementations
sourceimpl<T> Clone for ComplexTransform<T> where
T: Clone + CoordinateType,
impl<T> Clone for ComplexTransform<T> where
T: Clone + CoordinateType,
sourcefn clone(&self) -> ComplexTransform<T>
fn clone(&self) -> ComplexTransform<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Debug for ComplexTransform<T> where
T: Debug + CoordinateType,
impl<T> Debug for ComplexTransform<T> where
T: Debug + CoordinateType,
sourceimpl<'de, T> Deserialize<'de> for ComplexTransform<T> where
T: CoordinateType + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ComplexTransform<T> where
T: CoordinateType + Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ComplexTransform<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ComplexTransform<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> PartialEq<ComplexTransform<T>> for ComplexTransform<T> where
T: PartialEq<T> + CoordinateType,
impl<T> PartialEq<ComplexTransform<T>> for ComplexTransform<T> where
T: PartialEq<T> + CoordinateType,
sourcefn eq(&self, other: &ComplexTransform<T>) -> bool
fn eq(&self, other: &ComplexTransform<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComplexTransform<T>) -> bool
fn ne(&self, other: &ComplexTransform<T>) -> bool
This method tests for !=
.
sourceimpl<T> Serialize for ComplexTransform<T> where
T: CoordinateType + Serialize,
impl<T> Serialize for ComplexTransform<T> where
T: CoordinateType + Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> StructuralPartialEq for ComplexTransform<T> where
T: CoordinateType,
Auto Trait Implementations
impl<T> RefUnwindSafe for ComplexTransform<T> where
T: RefUnwindSafe,
impl<T> Send for ComplexTransform<T> where
T: Send,
impl<T> Sync for ComplexTransform<T> where
T: Sync,
impl<T> Unpin for ComplexTransform<T> where
T: Unpin,
impl<T> UnwindSafe for ComplexTransform<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more