#[repr(C)]
pub struct RigidTransform3D<T, Src, Dst> { pub rotation: Rotation3D<T, Src, Dst>, pub translation: Vector3D<T, Dst>, }
Expand description

A rigid transformation. All lengths are preserved under such a transformation.

Internally, this is a rotation and a translation, with the rotation applied first (i.e. Rotation * Translation, in row-vector notation)

This can be more efficient to use over full matrices, especially if you have to deal with the decomposed quantities often.

Fields

rotation: Rotation3D<T, Src, Dst>translation: Vector3D<T, Dst>

Implementations

Construct a new rigid transformation, where the rotation applies first

Construct an identity transform

Construct a new rigid transformation, where the translation applies first

Decompose this into a translation and an rotation to be applied in the opposite order

i.e., the translation is applied first

Returns the multiplication of the two transforms such that other’s transformation applies after self’s transformation.

i.e., this produces self * other in row-vector notation

Inverts the transformation

Drop the units, preserving only the numeric value.

Tag a unitless value with units.

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

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.