#[repr(C)]
pub struct Transform<T> {
pub m11: T,
pub m12: T,
pub m21: T,
pub m22: T,
pub m31: T,
pub m32: T,
}
pub fn row_major(m11: T, m12: T, m21: T, m22: T, m31: T, m32: T) -> Self | [src] |
pub fn post_mul<U>( &self, mat: &Transform<U> ) -> Transform<<T::Output as Add>::Output> where U: Copy, T: Mul<U>, T::Output: Add, <T::Output as Add>::Output: Add<U, Output = <T::Output as Add>::Output>, | [src] |
pub fn post_translate<U>( &self, vec: Vector<U> ) -> Transform<<T::Output as Add>::Output> where U: Copy + Zero + One, T: Mul<U>, T::Output: Add, <T::Output as Add>::Output: Add<U, Output = <T::Output as Add>::Output>, | [src] |
pub fn post_scale<U>(&self, x: U, y: U) -> Transform<<T::Output as Add>::Output> where U: Copy + Zero, T: Mul<U>, T::Output: Add, <T::Output as Add>::Output: Add<U, Output = <T::Output as Add>::Output>, | [src] |
pub fn post_rotate<U: Float>( &self, theta: U ) -> Transform<<T::Output as Add>::Output> where T: Mul<U>, T::Output: Add, <T::Output as Add>::Output: Add<U, Output = <T::Output as Add>::Output>, | [src] |
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more