Struct spectra::linear::Matrix4
[−]
[src]
#[repr(C)]pub struct Matrix4<S> { pub x: Vector4<S>, pub y: Vector4<S>, pub z: Vector4<S>, pub w: Vector4<S>, }
A 4 x 4, column major matrix
This type is marked as #[repr(C)]
.
Fields
x: Vector4<S>
The first column of the matrix.
y: Vector4<S>
The second column of the matrix.
z: Vector4<S>
The third column of the matrix.
w: Vector4<S>
The fourth column of the matrix.
Methods
impl<S> Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
pub fn new(
c0r0: S,
c0r1: S,
c0r2: S,
c0r3: S,
c1r0: S,
c1r1: S,
c1r2: S,
c1r3: S,
c2r0: S,
c2r1: S,
c2r2: S,
c2r3: S,
c3r0: S,
c3r1: S,
c3r2: S,
c3r3: S
) -> Matrix4<S>
[src]
c0r0: S,
c0r1: S,
c0r2: S,
c0r3: S,
c1r0: S,
c1r1: S,
c1r2: S,
c1r3: S,
c2r0: S,
c2r1: S,
c2r2: S,
c2r3: S,
c3r0: S,
c3r1: S,
c3r2: S,
c3r3: S
) -> Matrix4<S>
Create a new matrix, providing values for each index.
pub fn from_cols(
c0: Vector4<S>,
c1: Vector4<S>,
c2: Vector4<S>,
c3: Vector4<S>
) -> Matrix4<S>
[src]
c0: Vector4<S>,
c1: Vector4<S>,
c2: Vector4<S>,
c3: Vector4<S>
) -> Matrix4<S>
Create a new matrix, providing columns.
pub fn from_translation(v: Vector3<S>) -> Matrix4<S>
[src]
Create a homogeneous transformation matrix from a translation vector.
pub fn from_scale(value: S) -> Matrix4<S>
[src]
Create a homogeneous transformation matrix from a scale value.
pub fn from_nonuniform_scale(x: S, y: S, z: S) -> Matrix4<S>
[src]
Create a homogeneous transformation matrix from a set of scale values.
pub fn look_at(eye: Point3<S>, center: Point3<S>, up: Vector3<S>) -> Matrix4<S>
[src]
Create a homogeneous transformation matrix that will cause a vector to point at
dir
, using up
for orientation.
pub fn from_angle_x<A>(theta: A) -> Matrix4<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
Create a homogeneous transformation matrix from a rotation around the x
axis (pitch).
pub fn from_angle_y<A>(theta: A) -> Matrix4<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
Create a homogeneous transformation matrix from a rotation around the y
axis (yaw).
pub fn from_angle_z<A>(theta: A) -> Matrix4<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
Create a homogeneous transformation matrix from a rotation around the z
axis (roll).
pub fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Matrix4<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
Create a homogeneous transformation matrix from an angle around an arbitrary axis.
The specified axis must be normalized, or it represents an invalid rotation.
impl<S> Matrix4<S> where
S: Copy + NumCast,
[src]
S: Copy + NumCast,
Trait Implementations
impl<S> Matrix for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Column = Vector4<S>
The column vector of the matrix.
type Row = Vector4<S>
The row vector of the matrix.
type Transpose = Matrix4<S>
The result of transposing the matrix
fn row(&self, r: usize) -> Vector4<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) -> Matrix4<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<'a, S> Neg for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the -
operator.
fn neg(self) -> Matrix4<S>
[src]
Performs the unary -
operation.
impl<S> Neg for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the -
operator.
fn neg(self) -> Matrix4<S>
[src]
Performs the unary -
operation.
impl<S> AddAssign<Matrix4<S>> for Matrix4<S> where
S: BaseFloat + AddAssign<S>,
[src]
S: BaseFloat + AddAssign<S>,
fn add_assign(&mut self, other: Matrix4<S>)
[src]
Performs the +=
operation.
impl<S> ApproxEq for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Epsilon = <S as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> <S as ApproxEq>::Epsilon
[src]
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> <S as ApproxEq>::Epsilon
[src]
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
[src]
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(
&self,
other: &Matrix4<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_relative: <S as ApproxEq>::Epsilon
) -> bool
[src]
&self,
other: &Matrix4<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_relative: <S as ApproxEq>::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(
&self,
other: &Matrix4<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
[src]
&self,
other: &Matrix4<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
A test for equality that uses units in the last place (ULP) if the values are far apart.
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.
impl<S> IndexMut<usize> for Matrix4<S>
[src]
fn index_mut(&'a mut self, i: usize) -> &'a mut Vector4<S>
[src]
Performs the mutable indexing (container[index]
) operation.
impl<S> Index<usize> for Matrix4<S>
[src]
type Output = Vector4<S>
The returned type after indexing.
fn index(&'a self, i: usize) -> &'a Vector4<S>
[src]
Performs the indexing (container[index]
) operation.
impl<S> Sum<Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn sum<I>(iter: I) -> Matrix4<S> where
I: Iterator<Item = Matrix4<S>>,
[src]
I: Iterator<Item = Matrix4<S>>,
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl<'a, S> Sum<&'a Matrix4<S>> for Matrix4<S> where
S: 'a + BaseFloat,
[src]
S: 'a + BaseFloat,
fn sum<I>(iter: I) -> Matrix4<S> where
I: Iterator<Item = &'a Matrix4<S>>,
[src]
I: Iterator<Item = &'a Matrix4<S>>,
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl<S> AsRef<[S; 16]> for Matrix4<S>
[src]
impl<S> AsRef<[[S; 4]; 4]> for Matrix4<S>
[src]
impl<S> Copy for Matrix4<S> where
S: Copy,
[src]
S: Copy,
impl<S> VectorSpace for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Scalar = S
The associated scalar.
impl<S> MulAssign<S> for Matrix4<S> where
S: BaseFloat + MulAssign<S>,
[src]
S: BaseFloat + MulAssign<S>,
fn mul_assign(&mut self, scalar: S)
[src]
Performs the *=
operation.
impl<S> PartialEq<Matrix4<S>> for Matrix4<S> where
S: PartialEq<S>,
[src]
S: PartialEq<S>,
fn eq(&self, __arg_0: &Matrix4<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matrix4<S>) -> bool
[src]
This method tests for !=
.
impl<S> SubAssign<Matrix4<S>> for Matrix4<S> where
S: BaseFloat + SubAssign<S>,
[src]
S: BaseFloat + SubAssign<S>,
fn sub_assign(&mut self, other: Matrix4<S>)
[src]
Performs the -=
operation.
impl<S> Transform<Point3<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn one() -> Matrix4<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>) -> Matrix4<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: &Matrix4<S>) -> Matrix4<S>
[src]
Combine this transform with another, yielding a new transformation which has the effects of both. Read more
fn inverse_transform(&self) -> Option<Matrix4<S>>
[src]
Create a transform that "un-does" this one.
fn concat_self(&mut self, other: &Self)
[src]
Combine this transform with another, in-place.
impl<S> RemAssign<S> for Matrix4<S> where
S: BaseFloat + RemAssign<S>,
[src]
S: BaseFloat + RemAssign<S>,
fn rem_assign(&mut self, scalar: S)
[src]
Performs the %=
operation.
impl<'a> Mul<&'a Matrix4<i64>> for i64
[src]
type Output = Matrix4<i64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<i64>) -> Matrix4<i64>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<u64>> for u64
[src]
type Output = Matrix4<u64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<u64>) -> Matrix4<u64>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<usize>> for usize
[src]
type Output = Matrix4<usize>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<usize>) -> Matrix4<usize>
[src]
Performs the *
operation.
impl Mul<Matrix4<isize>> for isize
[src]
type Output = Matrix4<isize>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<isize>) -> Matrix4<isize>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<u16>> for u16
[src]
type Output = Matrix4<u16>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<u16>) -> Matrix4<u16>
[src]
Performs the *
operation.
impl<'a, S> Mul<Matrix4<S>> for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<S>) -> Matrix4<S>
[src]
Performs the *
operation.
impl Mul<Matrix4<f64>> for f64
[src]
type Output = Matrix4<f64>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<f64>) -> Matrix4<f64>
[src]
Performs the *
operation.
impl<'a, S> Mul<S> for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the *
operator.
fn mul(self, other: S) -> Matrix4<S>
[src]
Performs the *
operation.
impl Mul<Matrix4<i64>> for i64
[src]
type Output = Matrix4<i64>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<i64>) -> Matrix4<i64>
[src]
Performs the *
operation.
impl Mul<Matrix4<u16>> for u16
[src]
type Output = Matrix4<u16>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<u16>) -> Matrix4<u16>
[src]
Performs the *
operation.
impl<'a, S> Mul<&'a Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<S>) -> Matrix4<S>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<f32>> for f32
[src]
type Output = Matrix4<f32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<f32>) -> Matrix4<f32>
[src]
Performs the *
operation.
impl<S> Mul<S> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the *
operator.
fn mul(self, other: S) -> Matrix4<S>
[src]
Performs the *
operation.
impl Mul<Matrix4<usize>> for usize
[src]
type Output = Matrix4<usize>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<usize>) -> Matrix4<usize>
[src]
Performs the *
operation.
impl<'a, 'b, S> Mul<&'a Vector4<S>> for &'b Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
Performs the *
operation.
impl<S> Mul<Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<S>) -> Matrix4<S>
[src]
Performs the *
operation.
impl<'a, S> Mul<&'a Vector4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
Performs the *
operation.
impl Mul<Matrix4<u8>> for u8
[src]
type Output = Matrix4<u8>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<u8>) -> Matrix4<u8>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<i32>> for i32
[src]
type Output = Matrix4<i32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<i32>) -> Matrix4<i32>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<f64>> for f64
[src]
type Output = Matrix4<f64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<f64>) -> Matrix4<f64>
[src]
Performs the *
operation.
impl Mul<Matrix4<f32>> for f32
[src]
type Output = Matrix4<f32>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<f32>) -> Matrix4<f32>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<i16>> for i16
[src]
type Output = Matrix4<i16>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<i16>) -> Matrix4<i16>
[src]
Performs the *
operation.
impl Mul<Matrix4<i16>> for i16
[src]
type Output = Matrix4<i16>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<i16>) -> Matrix4<i16>
[src]
Performs the *
operation.
impl Mul<Matrix4<i32>> for i32
[src]
type Output = Matrix4<i32>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<i32>) -> Matrix4<i32>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<i8>> for i8
[src]
type Output = Matrix4<i8>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<i8>) -> Matrix4<i8>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<u8>> for u8
[src]
type Output = Matrix4<u8>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<u8>) -> Matrix4<u8>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<u32>> for u32
[src]
type Output = Matrix4<u32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<u32>) -> Matrix4<u32>
[src]
Performs the *
operation.
impl Mul<Matrix4<u64>> for u64
[src]
type Output = Matrix4<u64>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<u64>) -> Matrix4<u64>
[src]
Performs the *
operation.
impl Mul<Matrix4<i8>> for i8
[src]
type Output = Matrix4<i8>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<i8>) -> Matrix4<i8>
[src]
Performs the *
operation.
impl<'a, S> Mul<Vector4<S>> for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<S>) -> Vector4<S>
[src]
Performs the *
operation.
impl<'a, 'b, S> Mul<&'a Matrix4<S>> for &'b Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<S>) -> Matrix4<S>
[src]
Performs the *
operation.
impl<'a> Mul<&'a Matrix4<isize>> for isize
[src]
type Output = Matrix4<isize>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Matrix4<isize>) -> Matrix4<isize>
[src]
Performs the *
operation.
impl Mul<Matrix4<u32>> for u32
[src]
type Output = Matrix4<u32>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix4<u32>) -> Matrix4<u32>
[src]
Performs the *
operation.
impl<S> Mul<Vector4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<S>) -> Vector4<S>
[src]
Performs the *
operation.
impl<S> Debug for Matrix4<S> where
S: Debug,
[src]
S: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<S> DivAssign<S> for Matrix4<S> where
S: BaseFloat + DivAssign<S>,
[src]
S: BaseFloat + DivAssign<S>,
fn div_assign(&mut self, scalar: S)
[src]
Performs the /=
operation.
impl<S> SquareMatrix for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type ColumnRow = Vector4<S>
The row/column vector of the matrix. Read more
fn from_value(value: S) -> Matrix4<S>
[src]
Create a new diagonal matrix using the supplied value.
fn from_diagonal(value: Vector4<S>) -> Matrix4<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) -> Vector4<S>
[src]
Return a vector containing the diagonal of this matrix.
fn invert(&self) -> Option<Matrix4<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> From<Matrix3<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
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> From<Quaternion<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from(quat: Quaternion<S>) -> Matrix4<S>
[src]
Convert the quaternion to a 4 x 4 rotation matrix.
impl<'a, S> From<&'a mut [[S; 4]; 4]> for &'a mut Matrix4<S>
[src]
impl<'a, S> From<&'a mut [S; 16]> for &'a mut Matrix4<S>
[src]
impl<S> From<Matrix2<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from(m: Matrix2<S>) -> Matrix4<S>
[src]
Clone the elements of a 2-dimensional matrix into the top-left corner of a 4-dimensional identity matrix.
impl<S> From<[[S; 4]; 4]> for Matrix4<S> where
S: Copy,
[src]
S: Copy,
impl<S, R> From<Decomposed<Vector3<S>, R>> for Matrix4<S> where
R: Rotation3<S>,
S: BaseFloat,
[src]
R: Rotation3<S>,
S: BaseFloat,
fn from(dec: Decomposed<Vector3<S>, R>) -> Matrix4<S>
[src]
Performs the conversion.
impl<S> From<Perspective<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from(persp: Perspective<S>) -> Matrix4<S>
[src]
Performs the conversion.
impl<'a, S> From<&'a [S; 16]> for &'a Matrix4<S>
[src]
impl<S> From<PerspectiveFov<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from(persp: PerspectiveFov<S>) -> Matrix4<S>
[src]
Performs the conversion.
impl<S> From<Ortho<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<'a, S> From<&'a [[S; 4]; 4]> for &'a Matrix4<S>
[src]
impl<A> From<Euler<A>> for Matrix4<<A as Angle>::Unitless> where
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
[src]
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
impl<'a> Div<&'a Matrix4<u16>> for u16
[src]
type Output = Matrix4<u16>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<u16>) -> Matrix4<u16>
[src]
Performs the /
operation.
impl Div<Matrix4<f32>> for f32
[src]
type Output = Matrix4<f32>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<f32>) -> Matrix4<f32>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<i32>> for i32
[src]
type Output = Matrix4<i32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<i32>) -> Matrix4<i32>
[src]
Performs the /
operation.
impl Div<Matrix4<u16>> for u16
[src]
type Output = Matrix4<u16>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<u16>) -> Matrix4<u16>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<u8>> for u8
[src]
type Output = Matrix4<u8>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<u8>) -> Matrix4<u8>
[src]
Performs the /
operation.
impl Div<Matrix4<i32>> for i32
[src]
type Output = Matrix4<i32>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<i32>) -> Matrix4<i32>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<i64>> for i64
[src]
type Output = Matrix4<i64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<i64>) -> Matrix4<i64>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<u64>> for u64
[src]
type Output = Matrix4<u64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<u64>) -> Matrix4<u64>
[src]
Performs the /
operation.
impl Div<Matrix4<isize>> for isize
[src]
type Output = Matrix4<isize>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<isize>) -> Matrix4<isize>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<isize>> for isize
[src]
type Output = Matrix4<isize>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<isize>) -> Matrix4<isize>
[src]
Performs the /
operation.
impl Div<Matrix4<u32>> for u32
[src]
type Output = Matrix4<u32>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<u32>) -> Matrix4<u32>
[src]
Performs the /
operation.
impl Div<Matrix4<i8>> for i8
[src]
type Output = Matrix4<i8>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<i8>) -> Matrix4<i8>
[src]
Performs the /
operation.
impl Div<Matrix4<i64>> for i64
[src]
type Output = Matrix4<i64>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<i64>) -> Matrix4<i64>
[src]
Performs the /
operation.
impl<'a, S> Div<S> for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the /
operator.
fn div(self, other: S) -> Matrix4<S>
[src]
Performs the /
operation.
impl Div<Matrix4<u64>> for u64
[src]
type Output = Matrix4<u64>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<u64>) -> Matrix4<u64>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<f64>> for f64
[src]
type Output = Matrix4<f64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<f64>) -> Matrix4<f64>
[src]
Performs the /
operation.
impl Div<Matrix4<usize>> for usize
[src]
type Output = Matrix4<usize>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<usize>) -> Matrix4<usize>
[src]
Performs the /
operation.
impl Div<Matrix4<u8>> for u8
[src]
type Output = Matrix4<u8>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<u8>) -> Matrix4<u8>
[src]
Performs the /
operation.
impl Div<Matrix4<f64>> for f64
[src]
type Output = Matrix4<f64>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<f64>) -> Matrix4<f64>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<i8>> for i8
[src]
type Output = Matrix4<i8>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<i8>) -> Matrix4<i8>
[src]
Performs the /
operation.
impl Div<Matrix4<i16>> for i16
[src]
type Output = Matrix4<i16>
The resulting type after applying the /
operator.
fn div(self, other: Matrix4<i16>) -> Matrix4<i16>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<u32>> for u32
[src]
type Output = Matrix4<u32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<u32>) -> Matrix4<u32>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<f32>> for f32
[src]
type Output = Matrix4<f32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<f32>) -> Matrix4<f32>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<usize>> for usize
[src]
type Output = Matrix4<usize>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<usize>) -> Matrix4<usize>
[src]
Performs the /
operation.
impl<S> Div<S> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the /
operator.
fn div(self, other: S) -> Matrix4<S>
[src]
Performs the /
operation.
impl<'a> Div<&'a Matrix4<i16>> for i16
[src]
type Output = Matrix4<i16>
The resulting type after applying the /
operator.
fn div(self, other: &'a Matrix4<i16>) -> Matrix4<i16>
[src]
Performs the /
operation.
impl<S> Rand for Matrix4<S> where
S: BaseFloat + Rand,
[src]
S: BaseFloat + Rand,
fn rand<R>(rng: &mut R) -> Matrix4<S> where
R: Rng,
[src]
R: Rng,
Generates a random instance of this type using the specified source of randomness. Read more
impl<'a, S> Add<Matrix4<S>> for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the +
operator.
fn add(self, other: Matrix4<S>) -> Matrix4<S>
[src]
Performs the +
operation.
impl<'a, S> Add<&'a Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Matrix4<S>) -> Matrix4<S>
[src]
Performs the +
operation.
impl<S> Add<Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the +
operator.
fn add(self, other: Matrix4<S>) -> Matrix4<S>
[src]
Performs the +
operation.
impl<'a, 'b, S> Add<&'a Matrix4<S>> for &'b Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Matrix4<S>) -> Matrix4<S>
[src]
Performs the +
operation.
impl<S> Clone for Matrix4<S> where
S: Clone,
[src]
S: Clone,
fn clone(&self) -> Matrix4<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> One for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn one() -> Matrix4<S>
[src]
Returns the multiplicative identity element of Self
, 1
. Read more
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
Returns true
if self
is equal to the multiplicative identity. Read more
impl<S> Sub<Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the -
operator.
fn sub(self, other: Matrix4<S>) -> Matrix4<S>
[src]
Performs the -
operation.
impl<'a, S> Sub<Matrix4<S>> for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the -
operator.
fn sub(self, other: Matrix4<S>) -> Matrix4<S>
[src]
Performs the -
operation.
impl<'a, 'b, S> Sub<&'a Matrix4<S>> for &'b Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Matrix4<S>) -> Matrix4<S>
[src]
Performs the -
operation.
impl<'a, S> Sub<&'a Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Matrix4<S>) -> Matrix4<S>
[src]
Performs the -
operation.
impl<S> Zero for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn zero() -> Matrix4<S>
[src]
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
[src]
Returns true
if self
is equal to the additive identity.
impl<S> Into<[[S; 4]; 4]> for Matrix4<S>
[src]
impl<'a> Rem<&'a Matrix4<u8>> for u8
[src]
type Output = Matrix4<u8>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<u8>) -> Matrix4<u8>
[src]
Performs the %
operation.
impl Rem<Matrix4<f64>> for f64
[src]
type Output = Matrix4<f64>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<f64>) -> Matrix4<f64>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<i8>> for i8
[src]
type Output = Matrix4<i8>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<i8>) -> Matrix4<i8>
[src]
Performs the %
operation.
impl Rem<Matrix4<i64>> for i64
[src]
type Output = Matrix4<i64>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<i64>) -> Matrix4<i64>
[src]
Performs the %
operation.
impl Rem<Matrix4<u32>> for u32
[src]
type Output = Matrix4<u32>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<u32>) -> Matrix4<u32>
[src]
Performs the %
operation.
impl Rem<Matrix4<u8>> for u8
[src]
type Output = Matrix4<u8>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<u8>) -> Matrix4<u8>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<isize>> for isize
[src]
type Output = Matrix4<isize>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<isize>) -> Matrix4<isize>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<u32>> for u32
[src]
type Output = Matrix4<u32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<u32>) -> Matrix4<u32>
[src]
Performs the %
operation.
impl Rem<Matrix4<i32>> for i32
[src]
type Output = Matrix4<i32>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<i32>) -> Matrix4<i32>
[src]
Performs the %
operation.
impl Rem<Matrix4<u16>> for u16
[src]
type Output = Matrix4<u16>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<u16>) -> Matrix4<u16>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<i64>> for i64
[src]
type Output = Matrix4<i64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<i64>) -> Matrix4<i64>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<usize>> for usize
[src]
type Output = Matrix4<usize>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<usize>) -> Matrix4<usize>
[src]
Performs the %
operation.
impl Rem<Matrix4<f32>> for f32
[src]
type Output = Matrix4<f32>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<f32>) -> Matrix4<f32>
[src]
Performs the %
operation.
impl Rem<Matrix4<i8>> for i8
[src]
type Output = Matrix4<i8>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<i8>) -> Matrix4<i8>
[src]
Performs the %
operation.
impl Rem<Matrix4<usize>> for usize
[src]
type Output = Matrix4<usize>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<usize>) -> Matrix4<usize>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<u64>> for u64
[src]
type Output = Matrix4<u64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<u64>) -> Matrix4<u64>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<i16>> for i16
[src]
type Output = Matrix4<i16>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<i16>) -> Matrix4<i16>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<u16>> for u16
[src]
type Output = Matrix4<u16>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<u16>) -> Matrix4<u16>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<f32>> for f32
[src]
type Output = Matrix4<f32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<f32>) -> Matrix4<f32>
[src]
Performs the %
operation.
impl Rem<Matrix4<u64>> for u64
[src]
type Output = Matrix4<u64>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<u64>) -> Matrix4<u64>
[src]
Performs the %
operation.
impl Rem<Matrix4<isize>> for isize
[src]
type Output = Matrix4<isize>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<isize>) -> Matrix4<isize>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<f64>> for f64
[src]
type Output = Matrix4<f64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<f64>) -> Matrix4<f64>
[src]
Performs the %
operation.
impl<S> Rem<S> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the %
operator.
fn rem(self, other: S) -> Matrix4<S>
[src]
Performs the %
operation.
impl<'a> Rem<&'a Matrix4<i32>> for i32
[src]
type Output = Matrix4<i32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Matrix4<i32>) -> Matrix4<i32>
[src]
Performs the %
operation.
impl<'a, S> Rem<S> for &'a Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Matrix4<S>
The resulting type after applying the %
operator.
fn rem(self, other: S) -> Matrix4<S>
[src]
Performs the %
operation.
impl Rem<Matrix4<i16>> for i16
[src]
type Output = Matrix4<i16>
The resulting type after applying the %
operator.
fn rem(self, other: Matrix4<i16>) -> Matrix4<i16>
[src]
Performs the %
operation.
impl<'a, S> Product<&'a Matrix4<S>> for Matrix4<S> where
S: 'a + BaseFloat,
[src]
S: 'a + BaseFloat,
fn product<I>(iter: I) -> Matrix4<S> where
I: Iterator<Item = &'a Matrix4<S>>,
[src]
I: Iterator<Item = &'a Matrix4<S>>,
Method which takes an iterator and generates Self
from the elements by multiplying the items. Read more
impl<S> Product<Matrix4<S>> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn product<I>(iter: I) -> Matrix4<S> where
I: Iterator<Item = Matrix4<S>>,
[src]
I: Iterator<Item = Matrix4<S>>,
Method which takes an iterator and generates Self
from the elements by multiplying the items. Read more
impl<S> AsMut<[[S; 4]; 4]> for Matrix4<S>
[src]
impl<S> AsMut<[S; 16]> for Matrix4<S>
[src]
impl<S> Transform3<S> for Matrix4<S> where
S: BaseFloat,
[src]
S: BaseFloat,