Struct libreda_db::layout::prelude::Matrix2dTransform [−][src]
pub struct Matrix2dTransform<T> where
T: CoordinateType, { /* fields omitted */ }Expand description
Description of a transformation in the euclidean plane by a 2x2 matrix A.
Transforming a point p is computed by the matrix product A*p.
Implementations
Create a new transform based on a matrix.
Create a rotation by an integer multiple of 90 degrees.
Create a scaling by a factor.
Mirror at the x-axis.
Mirror at the y-axis.
Apply the transformation to a single point.
Return the matrix describing this transformation.
Get the inverse transformation.
Trait Implementations
impl<'de, T> Deserialize<'de> for Matrix2dTransform<T> where
T: CoordinateType + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Matrix2dTransform<T> where
T: CoordinateType + Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Matrix2dTransform<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Matrix2dTransform<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> PartialEq<Matrix2dTransform<T>> for Matrix2dTransform<T> where
T: PartialEq<T> + CoordinateType,
impl<T> PartialEq<Matrix2dTransform<T>> for Matrix2dTransform<T> where
T: PartialEq<T> + CoordinateType,
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl<T> RefUnwindSafe for Matrix2dTransform<T> where
T: RefUnwindSafe,
impl<T> Send for Matrix2dTransform<T> where
T: Send,
impl<T> Sync for Matrix2dTransform<T> where
T: Sync,
impl<T> Unpin for Matrix2dTransform<T> where
T: Unpin,
impl<T> UnwindSafe for Matrix2dTransform<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more