Struct cgmath::Decomposed[][src]

pub struct Decomposed<V: VectorSpace, R> {
    pub scale: V::Scalar,
    pub rot: R,
    pub disp: V,
}
Expand description

A generic transformation consisting of a rotation, displacement vector and scale amount.

Fields

scale: V::Scalarrot: Rdisp: V

Trait Implementations

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more

The inverse of AbsDiffEq::abs_diff_eq.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Multiplies the two transforms together. The result should be as if the two transforms were converted to matrices, then multiplied, then converted back with a (currently nonexistent) function that tries to convert a matrix into a Decomposed.

The resulting type after applying the * operator.

Returns the multiplicative identity element of Self, 1. Read more

Sets self to the multiplicative identity element of Self, 1.

Returns true if self is equal to the multiplicative identity. Read more

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

This method tests for !=.

The default relative tolerance for testing values that are far-apart. Read more

A test for equality that uses a relative comparison if the values are far apart.

The inverse of RelativeEq::relative_eq.

👎 Deprecated:

Use look_at_rh or look_at_lh

Create a transformation that rotates a vector to look at center from eye, using up for orientation. Read more

Create a transformation that rotates a vector to look at center from eye, using up for orientation. Read more

Create a transformation that rotates a vector to look at center from eye, using up for orientation. Read more

Transform a vector using this transform.

Inverse transform a vector using this transform

Transform a point using this transform.

Combine this transform with another, yielding a new transformation which has the effects of both. Read more

Create a transform that “un-does” this one.

Combine this transform with another, in-place.

The default ULPs to tolerate when testing values that are far-apart. Read more

A test for equality that uses units in the last place (ULP) if the values are far apart.

The inverse of UlpsEq::ulps_eq.

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)

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.