Expand description
A 3 x 3, column major matrix
This type is marked as #[repr(C)]
.
The first column of the matrix.
The second column of the matrix.
The third column of the matrix.
Create a new matrix, providing values for each index.
Create a new matrix, providing columns.
Create a homogeneous transformation matrix from a translation vector.
Create a homogeneous transformation matrix from a scale value.
Create a homogeneous transformation matrix from a set of scale values.
👎 Deprecated:
Use Matrix3::look_to_lh
Create a rotation matrix that will cause a vector to point at
dir
, using up
for orientation.
Create a rotation matrix that will cause a vector to point at
dir
, using up
for orientation.
Create a rotation matrix that will cause a vector to point at
dir
, using up
for orientation.
Create a rotation matrix from a rotation around the x
axis (pitch).
Create a rotation matrix from a rotation around the y
axis (yaw).
Create a rotation matrix from a rotation around the z
axis (roll).
Create a rotation matrix from an angle around an arbitrary axis.
The specified axis must be normalized, or it represents an invalid rotation.
Are all entries in the matrix finite.
Component-wise casting to another type
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 resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
The resulting type after applying the /
operator.
Clone the elements of a 2-dimensional matrix into the top-left corner
of a 3-dimensional identity matrix.
Clone the elements of a 3-dimensional matrix into the top-left corner
of a 4-dimensional identity matrix.
Convert the matrix to a quaternion
Convert the quaternion to a 3 x 3 rotation matrix.
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Performs the mutable indexing (container[index]
) operation. Read more
The column vector of the matrix.
The row vector of the matrix.
The result of transposing the matrix
Get a row from this matrix by-value.
Swap two rows of this array.
Swap two columns of this array.
Swap the values at index a
and b
Transpose this matrix, returning a new matrix.
Get the pointer to the first element of the array.
Get a mutable pointer to the first element of the array.
Replace a column in the array.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the -
operator.
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 !=
.
Method which takes an iterator and generates Self
from the elements by
multiplying the items. Read more
Method which takes an iterator and generates Self
from the elements by
multiplying the items. Read more
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 resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The resulting type after applying the %
operator.
The row/column vector of the matrix. Read more
Create a new diagonal matrix using the supplied value.
Create a matrix from a non-uniform scale
Transpose this matrix in-place.
Take the determinant of this matrix.
Return a vector containing the diagonal of this matrix.
Invert this matrix, returning a new matrix. m.mul_m(m.invert())
is
the identity matrix. Returns None
if this matrix is not invertible
(has a determinant of zero). Read more
Test if this is a diagonal matrix. That is, every element outside of
the diagonal is 0. Read more
Test if this matrix is symmetric. That is, it is equal to its
transpose. Read more
Return the trace of this matrix. That is, the sum of the diagonal.
Test if this matrix is invertible.
Test if this matrix is the identity matrix. That is, it is diagonal
and every element in the diagonal is one. Read more
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
Method which takes an iterator and generates Self
from the elements by
“summing up” the items. Read more
Method which takes an iterator and generates Self
from the elements by
“summing up” the items. Read more
👎 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.
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.
Inverse transform a vector using this transform
Combine this transform with another, in-place.
👎 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.
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.
Inverse transform a vector using this transform
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.
Returns the result of linearly interpolating the vector
towards other
by the specified amount. Read more
Returns the additive identity element of Self
, 0
. Read more
Returns true
if self
is equal to the additive identity.
Sets self
to the additive identity element of Self
, 0
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
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.
The type returned in the event of a conversion error.
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Rem<Rhs, Output = Output> + Add<Rhs, Output = Output> + Sub<Rhs, Output = Output>,