# [−][src]Struct cgmath::Matrix3

    #[repr(C)]
    pub struct Matrix3<S> {
        pub x: Vector3<S>,
        pub y: Vector3<S>,
        pub z: Vector3<S>,
    }

A 3 x 3, column major matrix

This type is marked as `#[repr(C)]`.

## Fields

`x: Vector3<S>`

The first column of the matrix.

`y: Vector3<S>`

The second column of the matrix.

`z: Vector3<S>`

The third column of the matrix.

## Methods

### `impl<S> Matrix3<S>`[src]

#### `pub const fn new(
c0r0: S,
c0r1: S,
c0r2: S,
c1r0: S,
c1r1: S,
c1r2: S,
c2r0: S,
c2r1: S,
c2r2: S
) -> Matrix3<S>`[src]

Create a new matrix, providing values for each index.

#### `pub const fn from_cols(
c0: Vector3<S>,
c1: Vector3<S>,
c2: Vector3<S>
) -> Matrix3<S>`[src]

Create a new matrix, providing columns.

### `impl<S: BaseFloat> Matrix3<S>`[src]

#### `pub fn look_at(dir: Vector3<S>, up: Vector3<S>) -> Matrix3<S>`[src]

Create a rotation matrix that will cause a vector to point at `dir`, using `up` for orientation.

#### `pub fn from_angle_x<A: Into<Rad<S>>>(theta: A) -> Matrix3<S>`[src]

Create a rotation matrix from a rotation around the `x` axis (pitch).

#### `pub fn from_angle_y<A: Into<Rad<S>>>(theta: A) -> Matrix3<S>`[src]

Create a rotation matrix from a rotation around the `y` axis (yaw).

#### `pub fn from_angle_z<A: Into<Rad<S>>>(theta: A) -> Matrix3<S>`[src]

Create a rotation matrix from a rotation around the `z` axis (roll).

#### `pub fn from_axis_angle<A: Into<Rad<S>>>(
axis: Vector3<S>,
angle: A
) -> Matrix3<S>`[src]

Create a rotation matrix from an angle around an arbitrary axis.

The specified axis must be normalized, or it represents an invalid rotation.

#### `pub fn is_finite(&self) -> bool`[src]

Are all entries in the matrix finite.

### `impl<S: NumCast + Copy> Matrix3<S>`[src]

#### `pub fn cast<T: NumCast>(&self) -> Option<Matrix3<T>>`[src]

Component-wise casting to another type

## Trait Implementations

### `impl<S: BaseFloat> VectorSpace for Matrix3<S>`[src]

#### `type Scalar = S`

The associated scalar.

#### `fn lerp(self, other: Self, amount: Self::Scalar) -> Self`[src]

Returns the result of linearly interpolating the vector towards `other` by the specified amount. Read more

### `impl<S: BaseFloat> Matrix for Matrix3<S>`[src]

#### `type Column = Vector3<S>`

The column vector of the matrix.

#### `type Row = Vector3<S>`

The row vector of the matrix.

#### `type Transpose = Matrix3<S>`

The result of transposing the matrix

#### `fn row(&self, r: usize) -> Vector3<S>`[src]

Get a row from this matrix by-value.

#### `fn swap_rows(&mut self, a: usize, b: usize)`[src]

Swap two rows of this array.

#### `fn swap_columns(&mut self, a: usize, b: usize)`[src]

Swap two columns of this array.

#### `fn swap_elements(&mut self, a: (usize, usize), b: (usize, usize))`[src]

Swap the values at index `a` and `b`

#### `fn transpose(&self) -> Matrix3<S>`[src]

Transpose this matrix, returning a new matrix.

#### `fn as_ptr(&self) -> *const Self::Scalar`[src]

Get the pointer to the first element of the array.

#### `fn as_mut_ptr(&mut self) -> *mut Self::Scalar`[src]

Get a mutable pointer to the first element of the array.

#### `fn replace_col(&mut self, c: usize, src: Self::Column) -> Self::Column`[src]

Replace a column in the array.

### `impl<S: BaseFloat> SquareMatrix for Matrix3<S>`[src]

#### `type ColumnRow = Vector3<S>`

The row/column vector of the matrix. Read more

#### `fn from_value(value: S) -> Matrix3<S>`[src]

Create a new diagonal matrix using the supplied value.

#### `fn from_diagonal(value: Vector3<S>) -> Matrix3<S>`[src]

Create a matrix from a non-uniform scale

#### `fn transpose_self(&mut self)`[src]

Transpose this matrix in-place.

#### `fn determinant(&self) -> S`[src]

Take the determinant of this matrix.

#### `fn diagonal(&self) -> Vector3<S>`[src]

Return a vector containing the diagonal of this matrix.

#### `fn invert(&self) -> Option<Matrix3<S>>`[src]

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

#### `fn is_diagonal(&self) -> bool`[src]

Test if this is a diagonal matrix. That is, every element outside of the diagonal is 0. Read more

#### `fn is_symmetric(&self) -> bool`[src]

Test if this matrix is symmetric. That is, it is equal to its transpose. Read more

#### `fn identity() -> Self`[src]

The [identity matrix]. Multiplying this matrix with another should have no effect. Read more

#### `fn trace(&self) -> Self::Scalar`[src]

Return the trace of this matrix. That is, the sum of the diagonal.

#### `fn is_invertible(&self) -> bool`[src]

Test if this matrix is invertible.

#### `fn is_identity(&self) -> bool`[src]

Test if this matrix is the identity matrix. That is, it is diagonal and every element in the diagonal is one. Read more

### `impl<S: BaseFloat> Transform<Point2<S>> for Matrix3<S>`[src]

#### `fn one() -> Matrix3<S>`[src]

Create an identity transformation. That is, a transformation which does nothing. Read more

#### `fn look_at(eye: Point2<S>, center: Point2<S>, up: Vector2<S>) -> Matrix3<S>`[src]

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

#### `fn transform_vector(&self, vec: Vector2<S>) -> Vector2<S>`[src]

Transform a vector using this transform.

#### `fn transform_point(&self, point: Point2<S>) -> Point2<S>`[src]

Transform a point using this transform.

#### `fn concat(&self, other: &Matrix3<S>) -> Matrix3<S>`[src]

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

#### `fn inverse_transform(&self) -> Option<Matrix3<S>>`[src]

Create a transform that "un-does" this one.

#### `fn inverse_transform_vector(&self, vec: P::Diff) -> Option<P::Diff>`[src]

Inverse transform a vector using this transform

#### `fn concat_self(&mut self, other: &Self)`[src]

Combine this transform with another, in-place.

### `impl<S: BaseFloat> Transform<Point3<S>> for Matrix3<S>`[src]

#### `fn one() -> Matrix3<S>`[src]

Create an identity transformation. That is, a transformation which does nothing. Read more

#### `fn look_at(eye: Point3<S>, center: Point3<S>, up: Vector3<S>) -> Matrix3<S>`[src]

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

#### `fn transform_vector(&self, vec: Vector3<S>) -> Vector3<S>`[src]

Transform a vector using this transform.

#### `fn transform_point(&self, point: Point3<S>) -> Point3<S>`[src]

Transform a point using this transform.

#### `fn concat(&self, other: &Matrix3<S>) -> Matrix3<S>`[src]

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

#### `fn inverse_transform(&self) -> Option<Matrix3<S>>`[src]

Create a transform that "un-does" this one.

#### `fn inverse_transform_vector(&self, vec: P::Diff) -> Option<P::Diff>`[src]

Inverse transform a vector using this transform

#### `fn concat_self(&mut self, other: &Self)`[src]

Combine this transform with another, in-place.

### `impl<S: BaseFloat> Transform2<S> for Matrix3<S>`[src]

### `impl<S: BaseFloat> Transform3<S> for Matrix3<S>`[src]

### `impl<S> Into<[[S; 3]; 3]> for Matrix3<S>`[src]

#### `fn into(self) -> [[S; 3]; 3]`[src]

Performs the conversion.

### `impl<S> AsMut<[[S; 3]; 3]> for Matrix3<S>`[src]

#### `fn as_mut(&mut self) -> &mut [[S; 3]; 3]`[src]

Performs the conversion.

### `impl<S> AsMut<[S; 9]> for Matrix3<S>`[src]

#### `fn as_mut(&mut self) -> &mut [S; 9]`[src]

Performs the conversion.

### `impl<S: Clone> Clone for Matrix3<S>`[src]

#### `fn clone(&self) -> Matrix3<S>`[src]

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`1.0.0[src]

Performs copy-assignment from `source`. Read more

### `impl<S> AsRef<[[S; 3]; 3]> for Matrix3<S>`[src]

#### `fn as_ref(&self) -> &[[S; 3]; 3]`[src]

Performs the conversion.

### `impl<S> AsRef<[S; 9]> for Matrix3<S>`[src]

#### `fn as_ref(&self) -> &[S; 9]`[src]

Performs the conversion.

### `impl<S> AsRef<Matrix3<S>> for Basis3<S>`[src]

#### `fn as_ref(&self) -> &Matrix3<S>`[src]

Performs the conversion.

### `impl<S: PartialEq> PartialEq<Matrix3<S>> for Matrix3<S>`[src]

#### `fn eq(&self, other: &Matrix3<S>) -> bool`[src]

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

#### `fn ne(&self, other: &Matrix3<S>) -> bool`[src]

This method tests for `!=`.

### `impl<A> From<Euler<A>> for Matrix3<A::Unitless> where
A: Angle + Into<Rad<<A as Angle>::Unitless>>,` [src]

#### `fn from(src: Euler<A>) -> Matrix3<A::Unitless>`[src]

Performs the conversion.

### `impl<S: Copy> From<[[S; 3]; 3]> for Matrix3<S>`[src]

#### `fn from(m: [[S; 3]; 3]) -> Matrix3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a [[S; 3]; 3]> for &'a Matrix3<S>`[src]

#### `fn from(m: &'a [[S; 3]; 3]) -> &'a Matrix3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a mut [[S; 3]; 3]> for &'a mut Matrix3<S>`[src]

#### `fn from(m: &'a mut [[S; 3]; 3]) -> &'a mut Matrix3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a [S; 9]> for &'a Matrix3<S>`[src]

#### `fn from(m: &'a [S; 9]) -> &'a Matrix3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a mut [S; 9]> for &'a mut Matrix3<S>`[src]

#### `fn from(m: &'a mut [S; 9]) -> &'a mut Matrix3<S>`[src]

Performs the conversion.

### `impl<S: BaseFloat> From<Matrix2<S>> for Matrix3<S>`[src]

#### `fn from(m: Matrix2<S>) -> Matrix3<S>`[src]

Clone the elements of a 2-dimensional matrix into the top-left corner of a 3-dimensional identity matrix.

### `impl<S: BaseFloat> From<Matrix3<S>> for Matrix4<S>`[src]

#### `fn from(m: Matrix3<S>) -> Matrix4<S>`[src]

Clone the elements of a 3-dimensional matrix into the top-left corner of a 4-dimensional identity matrix.

### `impl<S: BaseFloat> From<Matrix3<S>> for Quaternion<S>`[src]

#### `fn from(mat: Matrix3<S>) -> Quaternion<S>`[src]

Convert the matrix to a quaternion

### `impl<S: BaseFloat> From<Quaternion<S>> for Matrix3<S>`[src]

#### `fn from(quat: Quaternion<S>) -> Matrix3<S>`[src]

Convert the quaternion to a 3 x 3 rotation matrix.

### `impl<S: BaseFloat> From<Basis3<S>> for Matrix3<S>`[src]

#### `fn from(b: Basis3<S>) -> Matrix3<S>`[src]

Performs the conversion.

### `impl<S: BaseFloat, R: Rotation2<S>> From<Decomposed<Vector2<S>, R>> for Matrix3<S>`[src]

#### `fn from(dec: Decomposed<Vector2<S>, R>) -> Matrix3<S>`[src]

Performs the conversion.

### `impl<S: Copy> Copy for Matrix3<S>`[src]

### `impl<S: BaseFloat> Add<Matrix3<S>> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: Matrix3<S>) -> Matrix3<S>`[src]

Performs the `+` operation.

### `impl<'a, S: BaseFloat> Add<&'a Matrix3<S>> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: &'a Matrix3<S>) -> Matrix3<S>`[src]

Performs the `+` operation.

### `impl<'a, S: BaseFloat> Add<Matrix3<S>> for &'a Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: Matrix3<S>) -> Matrix3<S>`[src]

Performs the `+` operation.

### `impl<'a, 'b, S: BaseFloat> Add<&'a Matrix3<S>> for &'b Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: &'a Matrix3<S>) -> Matrix3<S>`[src]

Performs the `+` operation.

### `impl<S: BaseFloat> Sub<Matrix3<S>> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: Matrix3<S>) -> Matrix3<S>`[src]

Performs the `-` operation.

### `impl<'a, S: BaseFloat> Sub<&'a Matrix3<S>> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: &'a Matrix3<S>) -> Matrix3<S>`[src]

Performs the `-` operation.

### `impl<'a, S: BaseFloat> Sub<Matrix3<S>> for &'a Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: Matrix3<S>) -> Matrix3<S>`[src]

Performs the `-` operation.

### `impl<'a, 'b, S: BaseFloat> Sub<&'a Matrix3<S>> for &'b Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: &'a Matrix3<S>) -> Matrix3<S>`[src]

Performs the `-` operation.

### `impl<S: BaseFloat> Mul<S> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: S) -> Matrix3<S>`[src]

Performs the `*` operation.

### `impl<'a, S: BaseFloat> Mul<S> for &'a Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: S) -> Matrix3<S>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<usize>> for usize`[src]

#### `type Output = Matrix3<usize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<usize>) -> Matrix3<usize>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<usize>> for usize`[src]

#### `type Output = Matrix3<usize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<usize>) -> Matrix3<usize>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<u8>> for u8`[src]

#### `type Output = Matrix3<u8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<u8>) -> Matrix3<u8>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<u8>> for u8`[src]

#### `type Output = Matrix3<u8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<u8>) -> Matrix3<u8>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<u16>> for u16`[src]

#### `type Output = Matrix3<u16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<u16>) -> Matrix3<u16>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<u16>> for u16`[src]

#### `type Output = Matrix3<u16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<u16>) -> Matrix3<u16>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<u32>> for u32`[src]

#### `type Output = Matrix3<u32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<u32>) -> Matrix3<u32>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<u32>> for u32`[src]

#### `type Output = Matrix3<u32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<u32>) -> Matrix3<u32>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<u64>> for u64`[src]

#### `type Output = Matrix3<u64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<u64>) -> Matrix3<u64>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<u64>> for u64`[src]

#### `type Output = Matrix3<u64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<u64>) -> Matrix3<u64>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<isize>> for isize`[src]

#### `type Output = Matrix3<isize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<isize>) -> Matrix3<isize>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<isize>> for isize`[src]

#### `type Output = Matrix3<isize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<isize>) -> Matrix3<isize>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<i8>> for i8`[src]

#### `type Output = Matrix3<i8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<i8>) -> Matrix3<i8>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<i8>> for i8`[src]

#### `type Output = Matrix3<i8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<i8>) -> Matrix3<i8>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<i16>> for i16`[src]

#### `type Output = Matrix3<i16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<i16>) -> Matrix3<i16>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<i16>> for i16`[src]

#### `type Output = Matrix3<i16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<i16>) -> Matrix3<i16>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<i32>> for i32`[src]

#### `type Output = Matrix3<i32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<i32>) -> Matrix3<i32>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<i32>> for i32`[src]

#### `type Output = Matrix3<i32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<i32>) -> Matrix3<i32>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<i64>> for i64`[src]

#### `type Output = Matrix3<i64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<i64>) -> Matrix3<i64>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<i64>> for i64`[src]

#### `type Output = Matrix3<i64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<i64>) -> Matrix3<i64>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<f32>> for f32`[src]

#### `type Output = Matrix3<f32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<f32>) -> Matrix3<f32>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<f32>> for f32`[src]

#### `type Output = Matrix3<f32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<f32>) -> Matrix3<f32>`[src]

Performs the `*` operation.

### `impl Mul<Matrix3<f64>> for f64`[src]

#### `type Output = Matrix3<f64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<f64>) -> Matrix3<f64>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Matrix3<f64>> for f64`[src]

#### `type Output = Matrix3<f64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<f64>) -> Matrix3<f64>`[src]

Performs the `*` operation.

### `impl<S: BaseFloat> Mul<Vector3<S>> for Matrix3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Vector3<S>) -> Vector3<S>`[src]

Performs the `*` operation.

### `impl<'a, S: BaseFloat> Mul<&'a Vector3<S>> for Matrix3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Vector3<S>) -> Vector3<S>`[src]

Performs the `*` operation.

### `impl<'a, S: BaseFloat> Mul<Vector3<S>> for &'a Matrix3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Vector3<S>) -> Vector3<S>`[src]

Performs the `*` operation.

### `impl<'a, 'b, S: BaseFloat> Mul<&'a Vector3<S>> for &'b Matrix3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Vector3<S>) -> Vector3<S>`[src]

Performs the `*` operation.

### `impl<S: BaseFloat> Mul<Matrix3<S>> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<S>) -> Matrix3<S>`[src]

Performs the `*` operation.

### `impl<'a, S: BaseFloat> Mul<&'a Matrix3<S>> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<S>) -> Matrix3<S>`[src]

Performs the `*` operation.

### `impl<'a, S: BaseFloat> Mul<Matrix3<S>> for &'a Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Matrix3<S>) -> Matrix3<S>`[src]

Performs the `*` operation.

### `impl<'a, 'b, S: BaseFloat> Mul<&'a Matrix3<S>> for &'b Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Matrix3<S>) -> Matrix3<S>`[src]

Performs the `*` operation.

### `impl<S: BaseFloat> Div<S> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: S) -> Matrix3<S>`[src]

Performs the `/` operation.

### `impl<'a, S: BaseFloat> Div<S> for &'a Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: S) -> Matrix3<S>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<usize>> for usize`[src]

#### `type Output = Matrix3<usize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<usize>) -> Matrix3<usize>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<usize>> for usize`[src]

#### `type Output = Matrix3<usize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<usize>) -> Matrix3<usize>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<u8>> for u8`[src]

#### `type Output = Matrix3<u8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<u8>) -> Matrix3<u8>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<u8>> for u8`[src]

#### `type Output = Matrix3<u8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<u8>) -> Matrix3<u8>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<u16>> for u16`[src]

#### `type Output = Matrix3<u16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<u16>) -> Matrix3<u16>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<u16>> for u16`[src]

#### `type Output = Matrix3<u16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<u16>) -> Matrix3<u16>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<u32>> for u32`[src]

#### `type Output = Matrix3<u32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<u32>) -> Matrix3<u32>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<u32>> for u32`[src]

#### `type Output = Matrix3<u32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<u32>) -> Matrix3<u32>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<u64>> for u64`[src]

#### `type Output = Matrix3<u64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<u64>) -> Matrix3<u64>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<u64>> for u64`[src]

#### `type Output = Matrix3<u64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<u64>) -> Matrix3<u64>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<isize>> for isize`[src]

#### `type Output = Matrix3<isize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<isize>) -> Matrix3<isize>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<isize>> for isize`[src]

#### `type Output = Matrix3<isize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<isize>) -> Matrix3<isize>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<i8>> for i8`[src]

#### `type Output = Matrix3<i8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<i8>) -> Matrix3<i8>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<i8>> for i8`[src]

#### `type Output = Matrix3<i8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<i8>) -> Matrix3<i8>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<i16>> for i16`[src]

#### `type Output = Matrix3<i16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<i16>) -> Matrix3<i16>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<i16>> for i16`[src]

#### `type Output = Matrix3<i16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<i16>) -> Matrix3<i16>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<i32>> for i32`[src]

#### `type Output = Matrix3<i32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<i32>) -> Matrix3<i32>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<i32>> for i32`[src]

#### `type Output = Matrix3<i32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<i32>) -> Matrix3<i32>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<i64>> for i64`[src]

#### `type Output = Matrix3<i64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<i64>) -> Matrix3<i64>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<i64>> for i64`[src]

#### `type Output = Matrix3<i64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<i64>) -> Matrix3<i64>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<f32>> for f32`[src]

#### `type Output = Matrix3<f32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<f32>) -> Matrix3<f32>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<f32>> for f32`[src]

#### `type Output = Matrix3<f32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<f32>) -> Matrix3<f32>`[src]

Performs the `/` operation.

### `impl Div<Matrix3<f64>> for f64`[src]

#### `type Output = Matrix3<f64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Matrix3<f64>) -> Matrix3<f64>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Matrix3<f64>> for f64`[src]

#### `type Output = Matrix3<f64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Matrix3<f64>) -> Matrix3<f64>`[src]

Performs the `/` operation.

### `impl<S: BaseFloat> Rem<S> for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: S) -> Matrix3<S>`[src]

Performs the `%` operation.

### `impl<'a, S: BaseFloat> Rem<S> for &'a Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: S) -> Matrix3<S>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<usize>> for usize`[src]

#### `type Output = Matrix3<usize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<usize>) -> Matrix3<usize>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<usize>> for usize`[src]

#### `type Output = Matrix3<usize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<usize>) -> Matrix3<usize>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<u8>> for u8`[src]

#### `type Output = Matrix3<u8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<u8>) -> Matrix3<u8>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<u8>> for u8`[src]

#### `type Output = Matrix3<u8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<u8>) -> Matrix3<u8>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<u16>> for u16`[src]

#### `type Output = Matrix3<u16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<u16>) -> Matrix3<u16>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<u16>> for u16`[src]

#### `type Output = Matrix3<u16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<u16>) -> Matrix3<u16>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<u32>> for u32`[src]

#### `type Output = Matrix3<u32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<u32>) -> Matrix3<u32>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<u32>> for u32`[src]

#### `type Output = Matrix3<u32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<u32>) -> Matrix3<u32>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<u64>> for u64`[src]

#### `type Output = Matrix3<u64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<u64>) -> Matrix3<u64>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<u64>> for u64`[src]

#### `type Output = Matrix3<u64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<u64>) -> Matrix3<u64>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<isize>> for isize`[src]

#### `type Output = Matrix3<isize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<isize>) -> Matrix3<isize>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<isize>> for isize`[src]

#### `type Output = Matrix3<isize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<isize>) -> Matrix3<isize>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<i8>> for i8`[src]

#### `type Output = Matrix3<i8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<i8>) -> Matrix3<i8>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<i8>> for i8`[src]

#### `type Output = Matrix3<i8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<i8>) -> Matrix3<i8>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<i16>> for i16`[src]

#### `type Output = Matrix3<i16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<i16>) -> Matrix3<i16>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<i16>> for i16`[src]

#### `type Output = Matrix3<i16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<i16>) -> Matrix3<i16>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<i32>> for i32`[src]

#### `type Output = Matrix3<i32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<i32>) -> Matrix3<i32>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<i32>> for i32`[src]

#### `type Output = Matrix3<i32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<i32>) -> Matrix3<i32>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<i64>> for i64`[src]

#### `type Output = Matrix3<i64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<i64>) -> Matrix3<i64>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<i64>> for i64`[src]

#### `type Output = Matrix3<i64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<i64>) -> Matrix3<i64>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<f32>> for f32`[src]

#### `type Output = Matrix3<f32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<f32>) -> Matrix3<f32>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<f32>> for f32`[src]

#### `type Output = Matrix3<f32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<f32>) -> Matrix3<f32>`[src]

Performs the `%` operation.

### `impl Rem<Matrix3<f64>> for f64`[src]

#### `type Output = Matrix3<f64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Matrix3<f64>) -> Matrix3<f64>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Matrix3<f64>> for f64`[src]

#### `type Output = Matrix3<f64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Matrix3<f64>) -> Matrix3<f64>`[src]

Performs the `%` operation.

### `impl<S: BaseFloat> Neg for Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `-` operator.

#### `fn neg(self) -> Matrix3<S>`[src]

Performs the unary `-` operation.

### `impl<'a, S: BaseFloat> Neg for &'a Matrix3<S>`[src]

#### `type Output = Matrix3<S>`

The resulting type after applying the `-` operator.

#### `fn neg(self) -> Matrix3<S>`[src]

Performs the unary `-` operation.

### `impl<S: BaseFloat + AddAssign<S>> AddAssign<Matrix3<S>> for Matrix3<S>`[src]

#### `fn add_assign(&mut self, other: Matrix3<S>)`[src]

Performs the `+=` operation.

### `impl<S: BaseFloat + SubAssign<S>> SubAssign<Matrix3<S>> for Matrix3<S>`[src]

#### `fn sub_assign(&mut self, other: Matrix3<S>)`[src]

Performs the `-=` operation.

### `impl<S: BaseFloat + MulAssign<S>> MulAssign<S> for Matrix3<S>`[src]

#### `fn mul_assign(&mut self, scalar: S)`[src]

Performs the `*=` operation.

### `impl<S: BaseFloat + DivAssign<S>> DivAssign<S> for Matrix3<S>`[src]

#### `fn div_assign(&mut self, scalar: S)`[src]

Performs the `/=` operation.

### `impl<S: BaseFloat + RemAssign<S>> RemAssign<S> for Matrix3<S>`[src]

#### `fn rem_assign(&mut self, scalar: S)`[src]

Performs the `%=` operation.

### `impl<S> Index<usize> for Matrix3<S>`[src]

#### `type Output = Vector3<S>`

The returned type after indexing.

#### `fn index<'a>(&'a self, i: usize) -> &'a Vector3<S>`[src]

Performs the indexing (`container[index]`) operation.

### `impl<S> IndexMut<usize> for Matrix3<S>`[src]

#### `fn index_mut<'a>(&'a mut self, i: usize) -> &'a mut Vector3<S>`[src]

Performs the mutable indexing (`container[index]`) operation.

### `impl<S: Debug> Debug for Matrix3<S>`[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`[src]

Formats the value using the given formatter. Read more

### `impl<S: BaseFloat> Product<Matrix3<S>> for Matrix3<S>`[src]

#### `fn product<I: Iterator<Item = Matrix3<S>>>(iter: I) -> Matrix3<S>`[src]

Method which takes an iterator and generates `Self` from the elements by multiplying the items. Read more

### `impl<'a, S: 'a + BaseFloat> Product<&'a Matrix3<S>> for Matrix3<S>`[src]

#### `fn product<I: Iterator<Item = &'a Matrix3<S>>>(iter: I) -> Matrix3<S>`[src]

Method which takes an iterator and generates `Self` from the elements by multiplying the items. Read more

### `impl<S: BaseFloat> Sum<Matrix3<S>> for Matrix3<S>`[src]

#### `fn sum<I: Iterator<Item = Matrix3<S>>>(iter: I) -> Matrix3<S>`[src]

Method which takes an iterator and generates `Self` from the elements by "summing up" the items. Read more

### `impl<'a, S: 'a + BaseFloat> Sum<&'a Matrix3<S>> for Matrix3<S>`[src]

#### `fn sum<I: Iterator<Item = &'a Matrix3<S>>>(iter: I) -> Matrix3<S>`[src]

Method which takes an iterator and generates `Self` from the elements by "summing up" the items. Read more

### `impl<S: BaseFloat> AbsDiffEq<Matrix3<S>> for Matrix3<S>`[src]

#### `type Epsilon = S::Epsilon`

Used for specifying relative comparisons.

#### `fn default_epsilon() -> S::Epsilon`[src]

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

#### `fn abs_diff_eq(&self, other: &Self, epsilon: S::Epsilon) -> bool`[src]

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

#### `fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool`[src]

The inverse of `ApproxEq::abs_diff_eq`.

### `impl<S: BaseFloat> RelativeEq<Matrix3<S>> for Matrix3<S>`[src]

#### `fn default_max_relative() -> S::Epsilon`[src]

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

#### `fn relative_eq(
&self,
other: &Self,
epsilon: S::Epsilon,
max_relative: S::Epsilon
) -> bool`[src]

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

#### `fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool`[src]

The inverse of `ApproxEq::relative_eq`.

### `impl<S: BaseFloat> UlpsEq<Matrix3<S>> for Matrix3<S>`[src]

#### `fn default_max_ulps() -> u32`[src]

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

#### `fn ulps_eq(&self, other: &Self, epsilon: S::Epsilon, max_ulps: u32) -> bool`[src]

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

#### `fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool`[src]

The inverse of `ApproxEq::ulps_eq`.

### `impl<S: BaseFloat> Zero for Matrix3<S>`[src]

#### `fn zero() -> Matrix3<S>`[src]

Returns the additive identity element of `Self`, `0`. # Purity Read more

#### `fn is_zero(&self) -> bool`[src]

Returns `true` if `self` is equal to the additive identity.

#### `fn set_zero(&mut self)`[src]

Sets `self` to the additive identity element of `Self`, `0`.

### `impl<S: BaseFloat> One for Matrix3<S>`[src]

#### `fn one() -> Matrix3<S>`[src]

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

#### `fn set_one(&mut self)`[src]

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

#### `fn is_one(&self) -> bool where
Self: PartialEq<Self>,` [src]

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

### `impl<S> Distribution<Matrix3<S>> for Standard where
Standard: Distribution<Vector3<S>>,
S: BaseFloat,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Matrix3<S>`[src]

Generate a random value of `T`, using `rng` as the source of randomness.

#### `fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
R: Rng,` [src]

Create an iterator that generates random values of `T`, using `rng` as the source of randomness. Read more

## Auto Trait Implementations

### `impl<S> Send for Matrix3<S> where
S: Send,`

### `impl<S> Unpin for Matrix3<S> where
S: Unpin,`

### `impl<S> Sync for Matrix3<S> where
S: Sync,`

### `impl<S> UnwindSafe for Matrix3<S> where
S: UnwindSafe,`

### `impl<S> RefUnwindSafe for Matrix3<S> where
S: RefUnwindSafe,`

## Blanket Implementations

### `impl<T> ToOwned for T where
T: Clone,` [src]

#### `type Owned = T`

The resulting type after obtaining ownership.

#### `fn to_owned(&self) -> T`[src]

Creates owned data from borrowed data, usually by cloning. Read more

#### `fn clone_into(&self, target: &mut T)`[src]

🔬 This is a nightly-only experimental API. (`toowned_clone_into`)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

### `impl<T, U> Into<U> for T where
U: From<T>,` [src]

#### `fn into(self) -> U`[src]

Performs the conversion.

### `impl<T> From<T> for T`[src]

#### `fn from(t: T) -> T`[src]

Performs the conversion.

### `impl<T, U> TryFrom<U> for T where
U: Into<T>,` [src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

#### `fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`[src]

Performs the conversion.

### `impl<T, U> TryInto<U> for T where
U: TryFrom<T>,` [src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.

#### `fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`[src]

Performs the conversion.

### `impl<T> BorrowMut<T> for T where
T: ?Sized,` [src]

#### `fn borrow_mut(&mut self) -> &mut T`[src]

Mutably borrows from an owned value. Read more

### `impl<T> Borrow<T> for T where
T: ?Sized,` [src]

#### `fn borrow(&self) -> &T`[src]

Immutably borrows from an owned value. Read more

### `impl<T> Any for T where
T: 'static + ?Sized,` [src]

#### `fn type_id(&self) -> TypeId`[src]

Gets the `TypeId` of `self`. Read more

### `impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,` [src]

### `impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,` [src]

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)