Struct vecmat::mat::Mat2x2
[−]
[src]
pub struct Mat2x2<T: Copy> { pub d: [T; 4], }
Fields
d: [T; 4]
Methods
impl<T> Mat2x2<T> where
T: Copy + Default,
[src]
T: Copy + Default,
fn new() -> Self
impl<T> Mat2x2<T> where
T: Copy,
[src]
T: Copy,
fn new_array(a: [T; 4]) -> Self
fn new_map<F>(f: F) -> Self where
F: Fn(usize, usize) -> T,
F: Fn(usize, usize) -> T,
fn new_scal(v: T) -> Self
impl<T> Mat2x2<T> where
T: Copy,
[src]
T: Copy,
impl<T> Mat2x2<T> where
T: Copy,
[src]
T: Copy,
impl<T> Mat2x2<T> where
T: Copy + Zero,
[src]
T: Copy + Zero,
impl<T> Mat2x2<T> where
T: Copy,
[src]
T: Copy,
impl<T> Mat2x2<T> where
T: Copy,
[src]
T: Copy,
impl<T> Mat2x2<T> where
T: Copy + One + Zero,
[src]
T: Copy + One + Zero,
fn one() -> Self
impl<T> Mat2x2<T> where
T: Copy,
[src]
T: Copy,
impl<T> Mat2x2<T> where
T: Copy + Num + Signed,
[src]
T: Copy + Num + Signed,
impl<T> Mat2x2<T> where
T: Copy + Num + Signed,
[src]
T: Copy + Num + Signed,
fn det(self) -> T
impl<T> Mat2x2<T> where
T: Copy + Num + Signed,
[src]
T: Copy + Num + Signed,
impl<T> Mat2x2<T> where
T: Copy + Num + Signed,
[src]
T: Copy + Num + Signed,
Trait Implementations
impl<T: Clone + Copy> Clone for Mat2x2<T>
[src]
fn clone(&self) -> Mat2x2<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Copy + Copy> Copy for Mat2x2<T>
[src]
impl<T: Debug + Copy> Debug for Mat2x2<T>
[src]
impl<T: PartialEq + Copy> PartialEq for Mat2x2<T>
[src]
fn eq(&self, __arg_0: &Mat2x2<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Mat2x2<T>) -> bool
This method tests for !=
.
impl<T> Default for Mat2x2<T> where
T: Copy + Default,
[src]
T: Copy + Default,
impl<T> Display for Mat2x2<T> where
T: Copy + Display,
[src]
T: Copy + Display,
fn fmt(&self, f: &mut Formatter) -> FmtResult
Formats the value using the given formatter. Read more
impl<T> Index<(usize, usize)> for Mat2x2<T> where
T: Copy,
[src]
T: Copy,
type Output = T
The returned type after indexing
fn index(&self, ij: (usize, usize)) -> &Self::Output
The method for the indexing (container[index]
) operation
impl<T> IndexMut<(usize, usize)> for Mat2x2<T> where
T: Copy,
[src]
T: Copy,
fn index_mut(&mut self, ij: (usize, usize)) -> &mut Self::Output
The method for the mutable indexing (container[index]
) operation
impl<T> Neg for Mat2x2<T> where
T: Copy + Num + Signed,
[src]
T: Copy + Num + Signed,
type Output = Self
The resulting type after applying the -
operator
fn neg(self) -> Self::Output
The method for the unary -
operator
impl<T> Add for Mat2x2<T> where
T: Copy + Num + Add<Output = T>,
[src]
T: Copy + Num + Add<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the +
operator
fn add(self, mat: Mat2x2<T>) -> Self::Output
The method for the +
operator
impl<T> Sub for Mat2x2<T> where
T: Copy + Num + Sub<Output = T>,
[src]
T: Copy + Num + Sub<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the -
operator
fn sub(self, mat: Mat2x2<T>) -> Self::Output
The method for the -
operator
impl<T> Mul for Mat2x2<T> where
T: Copy + Num + Mul<Output = T>,
[src]
T: Copy + Num + Mul<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the *
operator
fn mul(self, mat: Mat2x2<T>) -> Self::Output
The method for the *
operator
impl<T> Div for Mat2x2<T> where
T: Copy + Num + Div<Output = T>,
[src]
T: Copy + Num + Div<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the /
operator
fn div(self, mat: Mat2x2<T>) -> Self::Output
The method for the /
operator
impl<T> Rem for Mat2x2<T> where
T: Copy + Num + Rem<Output = T>,
[src]
T: Copy + Num + Rem<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the %
operator
fn rem(self, mat: Mat2x2<T>) -> Self::Output
The method for the %
operator
impl<T> Mul<T> for Mat2x2<T> where
T: Copy + Num + Mul<Output = T>,
[src]
T: Copy + Num + Mul<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the *
operator
fn mul(self, a: T) -> Self::Output
The method for the *
operator
impl<T> Div<T> for Mat2x2<T> where
T: Copy + Num + Div<Output = T>,
[src]
T: Copy + Num + Div<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the /
operator
fn div(self, a: T) -> Self::Output
The method for the /
operator
impl<T> Rem<T> for Mat2x2<T> where
T: Copy + Num + Rem<Output = T>,
[src]
T: Copy + Num + Rem<Output = T>,
type Output = Mat2x2<T>
The resulting type after applying the %
operator
fn rem(self, a: T) -> Self::Output
The method for the %
operator
impl<T> AddAssign<Mat2x2<T>> for Mat2x2<T> where
T: Copy + Num + Add<Output = T>,
[src]
T: Copy + Num + Add<Output = T>,
fn add_assign(&mut self, mat: Mat2x2<T>)
The method for the +=
operator
impl<T> SubAssign<Mat2x2<T>> for Mat2x2<T> where
T: Copy + Num + Sub<Output = T>,
[src]
T: Copy + Num + Sub<Output = T>,
fn sub_assign(&mut self, mat: Mat2x2<T>)
The method for the -=
operator
impl<T> MulAssign<Mat2x2<T>> for Mat2x2<T> where
T: Copy + Num + Mul<Output = T>,
[src]
T: Copy + Num + Mul<Output = T>,
fn mul_assign(&mut self, mat: Mat2x2<T>)
The method for the *=
operator
impl<T> DivAssign<Mat2x2<T>> for Mat2x2<T> where
T: Copy + Num + Div<Output = T>,
[src]
T: Copy + Num + Div<Output = T>,
fn div_assign(&mut self, mat: Mat2x2<T>)
The method for the /=
operator
impl<T> RemAssign<Mat2x2<T>> for Mat2x2<T> where
T: Copy + Num + Rem<Output = T>,
[src]
T: Copy + Num + Rem<Output = T>,
fn rem_assign(&mut self, mat: Mat2x2<T>)
The method for the %=
operator
impl<T> MulAssign<T> for Mat2x2<T> where
T: Copy + Num + Mul<Output = T>,
[src]
T: Copy + Num + Mul<Output = T>,
fn mul_assign(&mut self, a: T)
The method for the *=
operator
impl<T> DivAssign<T> for Mat2x2<T> where
T: Copy + Num + Div<Output = T>,
[src]
T: Copy + Num + Div<Output = T>,
fn div_assign(&mut self, a: T)
The method for the /=
operator
impl<T> RemAssign<T> for Mat2x2<T> where
T: Copy + Num + Rem<Output = T>,
[src]
T: Copy + Num + Rem<Output = T>,
fn rem_assign(&mut self, a: T)
The method for the %=
operator
impl<T> Zero for Mat2x2<T> where
T: Copy + Num + Zero,
[src]
T: Copy + Num + Zero,
fn zero() -> Self
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
Returns true
if self
is equal to the additive identity.
impl<T> Dot<Vec2<T>> for Mat2x2<T> where
T: Copy + Num,
[src]
T: Copy + Num,
impl<T> Dot<Mat2x2<T>> for Mat2x2<T> where
T: Copy + Num,
[src]
T: Copy + Num,
impl<T> Dot<Mat3x2<T>> for Mat2x2<T> where
T: Copy + Num,
[src]
T: Copy + Num,
impl<T> Dot<Mat4x2<T>> for Mat2x2<T> where
T: Copy + Num,
[src]
T: Copy + Num,
impl<T> One for Mat2x2<T> where
T: Copy + Num + One + Zero,
[src]
T: Copy + Num + One + Zero,