Struct glm::Matrix3x2
[−]
[src]
#[repr(C)]pub struct Matrix3x2<T: BaseFloat> { pub c0: Vector2<T>, pub c1: Vector2<T>, pub c2: Vector2<T>, }
Fields
c0: Vector2<T>
c1: Vector2<T>
c2: Vector2<T>
Methods
impl<T: BaseFloat> Matrix3x2<T>
[src]
impl<T: BaseFloat> Matrix3x2<T>
pub fn new(c0: Vector2<T>, c1: Vector2<T>, c2: Vector2<T>) -> Matrix3x2<T>
[src]
pub fn new(c0: Vector2<T>, c1: Vector2<T>, c2: Vector2<T>) -> Matrix3x2<T>
pub fn from_array(ary: &[Vector2<T>; 3]) -> &Matrix3x2<T>
[src]
pub fn from_array(ary: &[Vector2<T>; 3]) -> &Matrix3x2<T>
pub fn from_array_mut(ary: &mut [Vector2<T>; 3]) -> &mut Matrix3x2<T>
[src]
pub fn from_array_mut(ary: &mut [Vector2<T>; 3]) -> &mut Matrix3x2<T>
pub fn as_array(&self) -> &[Vector2<T>; 3]
[src]
pub fn as_array(&self) -> &[Vector2<T>; 3]
pub fn as_array_mut(&mut self) -> &mut [Vector2<T>; 3]
[src]
pub fn as_array_mut(&mut self) -> &mut [Vector2<T>; 3]
pub fn add_s(&self, rhs: T) -> Matrix3x2<T>
[src]
pub fn add_s(&self, rhs: T) -> Matrix3x2<T>
pub fn add_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
[src]
pub fn add_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
pub fn sub_s(&self, rhs: T) -> Matrix3x2<T>
[src]
pub fn sub_s(&self, rhs: T) -> Matrix3x2<T>
pub fn sub_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
[src]
pub fn sub_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
pub fn div_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
[src]
pub fn div_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
pub fn div_s(&self, rhs: T) -> Matrix3x2<T>
[src]
pub fn div_s(&self, rhs: T) -> Matrix3x2<T>
pub fn rem_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
[src]
pub fn rem_m(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
pub fn rem_s(&self, rhs: T) -> Matrix3x2<T>
[src]
pub fn rem_s(&self, rhs: T) -> Matrix3x2<T>
pub fn mul_s(&self, rhs: T) -> Matrix3x2<T>
[src]
pub fn mul_s(&self, rhs: T) -> Matrix3x2<T>
pub fn mul_v(&self, rhs: &Vector3<T>) -> Vector2<T>
[src]
pub fn mul_v(&self, rhs: &Vector3<T>) -> Vector2<T>
pub fn mul_m(&self, rhs: &Matrix2x3<T>) -> Matrix2<T>
[src]
pub fn mul_m(&self, rhs: &Matrix2x3<T>) -> Matrix2<T>
pub fn neg_m(&self) -> Matrix3x2<T>
[src]
pub fn neg_m(&self) -> Matrix3x2<T>
Trait Implementations
impl<T: Copy + BaseFloat> Copy for Matrix3x2<T>
[src]
impl<T: Copy + BaseFloat> Copy for Matrix3x2<T>
impl<T: Clone + BaseFloat> Clone for Matrix3x2<T>
[src]
impl<T: Clone + BaseFloat> Clone for Matrix3x2<T>
fn clone(&self) -> Matrix3x2<T>
[src]
fn clone(&self) -> Matrix3x2<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: PartialEq + BaseFloat> PartialEq for Matrix3x2<T>
[src]
impl<T: PartialEq + BaseFloat> PartialEq for Matrix3x2<T>
fn eq(&self, __arg_0: &Matrix3x2<T>) -> bool
[src]
fn eq(&self, __arg_0: &Matrix3x2<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matrix3x2<T>) -> bool
[src]
fn ne(&self, __arg_0: &Matrix3x2<T>) -> bool
This method tests for !=
.
impl<T: Debug + BaseFloat> Debug for Matrix3x2<T>
[src]
impl<T: Debug + BaseFloat> Debug for Matrix3x2<T>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: BaseFloat> Index<usize> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Index<usize> for Matrix3x2<T>
type Output = Vector2<T>
The returned type after indexing.
fn index<'a>(&'a self, i: usize) -> &'a Vector2<T>
[src]
fn index<'a>(&'a self, i: usize) -> &'a Vector2<T>
Performs the indexing (container[index]
) operation.
impl<T: BaseFloat> IndexMut<usize> for Matrix3x2<T>
[src]
impl<T: BaseFloat> IndexMut<usize> for Matrix3x2<T>
fn index_mut<'a>(&'a mut self, i: usize) -> &'a mut Vector2<T>
[src]
fn index_mut<'a>(&'a mut self, i: usize) -> &'a mut Vector2<T>
Performs the mutable indexing (container[index]
) operation.
impl<T: BaseFloat> Rand for Matrix3x2<T>
[src]
impl<T: BaseFloat> Rand for Matrix3x2<T>
fn rand<R: Rng>(rng: &mut R) -> Matrix3x2<T>
[src]
fn rand<R: Rng>(rng: &mut R) -> Matrix3x2<T>
Generates a random instance of this type using the specified source of randomness. Read more
impl<T: BaseFloat> Add<T> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Add<T> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Matrix3x2<T>
[src]
fn add(self, rhs: T) -> Matrix3x2<T>
Performs the +
operation.
impl<T: BaseFloat> ApproxEq for Matrix3x2<T>
[src]
impl<T: BaseFloat> ApproxEq for Matrix3x2<T>
type BaseType = T
fn is_close_to(&self, rhs: &Matrix3x2<T>, max_diff: T) -> bool
[src]
fn is_close_to(&self, rhs: &Matrix3x2<T>, max_diff: T) -> bool
Returns true
if the difference between x
and y
is less than max_diff
. Read more
fn is_approx_eq(&self, rhs: &Self) -> bool
[src]
fn is_approx_eq(&self, rhs: &Self) -> bool
Returns true
if the difference between x
and y
is less than machine epsilon. Read more
impl<T: BaseFloat> Add<Matrix3x2<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Add<Matrix3x2<T>> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
[src]
fn add(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
Performs the +
operation.
impl<T: BaseFloat> Sub<T> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Sub<T> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> Matrix3x2<T>
[src]
fn sub(self, rhs: T) -> Matrix3x2<T>
Performs the -
operation.
impl<T: BaseFloat> Sub<Matrix3x2<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Sub<Matrix3x2<T>> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
[src]
fn sub(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
Performs the -
operation.
impl<T: BaseFloat> Div<T> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Div<T> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Matrix3x2<T>
[src]
fn div(self, rhs: T) -> Matrix3x2<T>
Performs the /
operation.
impl<T: BaseFloat> Div<Matrix3x2<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Div<Matrix3x2<T>> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the /
operator.
fn div(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
[src]
fn div(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
Performs the /
operation.
impl<T: BaseFloat> Rem<T> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Rem<T> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the %
operator.
fn rem(self, rhs: T) -> Matrix3x2<T>
[src]
fn rem(self, rhs: T) -> Matrix3x2<T>
Performs the %
operation.
impl<T: BaseFloat> Rem<Matrix3x2<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Rem<Matrix3x2<T>> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the %
operator.
fn rem(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
[src]
fn rem(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
Performs the %
operation.
impl<T: BaseFloat> Neg for Matrix3x2<T>
[src]
impl<T: BaseFloat> Neg for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the -
operator.
fn neg(self) -> Matrix3x2<T>
[src]
fn neg(self) -> Matrix3x2<T>
Performs the unary -
operation.
impl<T: BaseFloat> Mul<T> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Mul<T> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Matrix3x2<T>
[src]
fn mul(self, rhs: T) -> Matrix3x2<T>
Performs the *
operation.
impl<T: BaseFloat> Mul<Vector3<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Mul<Vector3<T>> for Matrix3x2<T>
type Output = Vector2<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<T>) -> Vector2<T>
[src]
fn mul(self, rhs: Vector3<T>) -> Vector2<T>
Performs the *
operation.
impl<T: BaseFloat> Mul<Matrix2x3<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Mul<Matrix2x3<T>> for Matrix3x2<T>
type Output = Matrix2<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix2x3<T>) -> Matrix2<T>
[src]
fn mul(self, rhs: Matrix2x3<T>) -> Matrix2<T>
Performs the *
operation.
impl<T: BaseFloat> Zero for Matrix3x2<T>
[src]
impl<T: BaseFloat> Zero for Matrix3x2<T>
fn zero() -> Matrix3x2<T>
[src]
fn zero() -> Matrix3x2<T>
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
[src]
fn is_zero(&self) -> bool
Returns true
if self
is equal to the additive identity.
impl<T: BaseFloat> GenMat<T, Vector2<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> GenMat<T, Vector2<T>> for Matrix3x2<T>
type R = Vector3<T>
Type of row vectors.
type Transpose = Matrix2x3<T>
Type of transpose matrix.
fn transpose(&self) -> Matrix2x3<T>
[src]
fn transpose(&self) -> Matrix2x3<T>
Returns the transpose matrix. Read more
fn mul_c(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
[src]
fn mul_c(&self, rhs: &Matrix3x2<T>) -> Matrix3x2<T>
Component-wise multiplication. Read more
impl<T: BaseFloat> Mul<Matrix3x2<T>> for Matrix2x3<T>
[src]
impl<T: BaseFloat> Mul<Matrix3x2<T>> for Matrix2x3<T>
type Output = Matrix3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix3x2<T>) -> Matrix3<T>
[src]
fn mul(self, rhs: Matrix3x2<T>) -> Matrix3<T>
Performs the *
operation.
impl<T: BaseFloat> Mul<Matrix3x2<T>> for Matrix2<T>
[src]
impl<T: BaseFloat> Mul<Matrix3x2<T>> for Matrix2<T>
type Output = Matrix3x2<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
[src]
fn mul(self, rhs: Matrix3x2<T>) -> Matrix3x2<T>
Performs the *
operation.
impl<T: BaseFloat> Mul<Matrix3x2<T>> for Matrix2x4<T>
[src]
impl<T: BaseFloat> Mul<Matrix3x2<T>> for Matrix2x4<T>
type Output = Matrix3x4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix3x2<T>) -> Matrix3x4<T>
[src]
fn mul(self, rhs: Matrix3x2<T>) -> Matrix3x4<T>
Performs the *
operation.
impl<T: BaseFloat> Mul<Matrix3<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Mul<Matrix3<T>> for Matrix3x2<T>
type Output = Matrix3x2<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix3<T>) -> Matrix3x2<T>
[src]
fn mul(self, rhs: Matrix3<T>) -> Matrix3x2<T>
Performs the *
operation.
impl<T: BaseFloat> Mul<Matrix4x3<T>> for Matrix3x2<T>
[src]
impl<T: BaseFloat> Mul<Matrix4x3<T>> for Matrix3x2<T>