Struct libreda_pnr::place::placement_problem::db::Matrix3dTransform[][src]

pub struct Matrix3dTransform<T> where
    T: CoordinateType
{ pub m11: T, pub m12: T, pub m21: T, pub m22: T, pub m31: T, pub m32: T, }
Expand description

Affine transformation represented as a 3x3 matrix like:

m11 m12 0
m21 m22 0
m31 m32 1

Fields

m11: T

m11

m12: T

m12

m21: T

m21

m22: T

m22

m31: T

m31. Used to express the x component of the translation.

m32: T

m32. Used to express the y component of the translation.

Implementations

Create a new transform based on the matrix elements.

Get the identity transform.

Create a translation by a vector.

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 3x3 matrix describing this transformation.

Return the 2x2 matrix that describes this transformation without any translation.

Compute the determinant of the 3x3 matrix that describes this transformation.

Get the inverse transformation if it exists.

Return a new transformation that is equal to applying first self then t.

Create a new transformation with an additional scaling.

Create a new transformation with an additional translation.

Create a new transformation with an additional rotation by a multiple of 90 degrees.

Create a new transformation with an additional mirroring at the x-axis.

Create a new transformation with an additional mirroring at the y-axis.

Get the translation part of this affine transformation.

Create a rotation by an arbitrary angle (in radians).

Create a new transformation with an additional rotation.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Shortcut for self.then(&rhs).

The resulting type after applying the * operator.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.