Struct iron_shapes::transform::ComplexTransform
source · pub struct ComplexTransform<T: CoordinateType> {
mirror: bool,
rotation: FloatType,
magnification: FloatType,
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: boolMirror at x-axis?
rotation: FloatTypeRotation by an arbitrary angle (radians).
magnification: FloatTypeScaling.
displacement: Vector<T>Translation.
Trait Implementations§
source§impl<T: Clone + CoordinateType> Clone for ComplexTransform<T>
impl<T: Clone + CoordinateType> Clone for ComplexTransform<T>
source§fn clone(&self) -> ComplexTransform<T>
fn clone(&self) -> ComplexTransform<T>
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<T: Debug + CoordinateType> Debug for ComplexTransform<T>
impl<T: Debug + CoordinateType> Debug for ComplexTransform<T>
source§impl<'de, T> Deserialize<'de> for ComplexTransform<T>where
T: Deserialize<'de> + CoordinateType,
impl<'de, T> Deserialize<'de> for ComplexTransform<T>where T: Deserialize<'de> + CoordinateType,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq + CoordinateType> PartialEq<ComplexTransform<T>> for ComplexTransform<T>
impl<T: PartialEq + CoordinateType> PartialEq<ComplexTransform<T>> for ComplexTransform<T>
source§fn 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 ==.