#[repr(C)]
pub struct DSimilarity2x4 { pub translation: DVec2x4, pub rotation: DRotor2x4, pub scale: f64x4, }
Expand description

A Similarity, i.e. an Isometry but with an added uniform scaling.

Defined as a uniform scaling followed by a rotation followed by a translation.

You may want to us this type over the corresponding type of homogeneous transformation matrix because it will be faster in most operations, especially composition and inverse.

Fields

translation: DVec2x4rotation: DRotor2x4scale: f64x4

Implementations

Add a scaling before this similarity.

This means the scaling will only affect the scaling part of this similarity, not the translational part.

Add a scaling after this similarity.

This means the scaling will affect both the scaling and translational parts of this similairty, since it is being applied after this similarity’s translational part.

Add a rotation before this similarity.

This means the rotation will only affect the rotational part of this similarity, not the translational part.

Add a rotation after this similarity.

This means the rotation will affect both the rotational and translational parts of this similarity, since it is being applied after this similarity’s translational part.

Add a translation before this similarity.

Doing so will mean that the translation being added will get transformed by this similarity’s rotational and scaling parts.

Add a translation after this similarity.

Doing so will mean that the translation being added will not transformed by this similarity’s rotational or scaling parts.

Prepend transformation by another similarity.

This means that the transformation being applied will take place before this similarity, i.e. both its translation and rotation will be rotated by the other similarity’s rotational part, and its translation will be scaled by the other similarity’s scaling part.

Append transformation by another similarity.

This means that the transformation being applied will take place after this similarity, i.e. this similarity’s translation and rotation will be rotated by the other similarity’s rotational part, and this similarity’s translation will be scaled by the other similarity’s scaling pat.

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. 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.