[−][src]Struct gramit::mat::Mat3
Methods
impl Mat3
[src]
pub fn new(col1: Vec3, col2: Vec3, col3: Vec3) -> Mat3
[src]
Construct a new matrix with the given vectors as columns.
Trait Implementations
impl ApproxEq<Mat3> for Mat3
[src]
fn approx_eq(self, rhs: Mat3) -> bool
[src]
fn within_threshold(self, rhs: Mat3, threshold: Mat3) -> bool
[src]
Compare two matrices for approximate equality, using a third matrix for component-wise thresholds.
impl SquareMatrix for Mat3
[src]
type VecType = Vec3
The type used to represent the columns and rows of the matrix type.
const DIMS: usize
[src]
fn ones() -> Self
[src]
fn zeros() -> Self
[src]
fn identity() -> Self
[src]
fn transpose(&self) -> Self
[src]
fn determinant(&self) -> f32
[src]
fn inverse(&self) -> Self
[src]
fn minor(&self, col: usize, row: usize) -> f32
[src]
fn cofactor(&self, col: usize, row: usize) -> f32
[src]
fn get_col(&self, i: usize) -> Vec3
[src]
fn get_row(&self, i: usize) -> Vec3
[src]
fn set_col(&mut self, i: usize, c: Vec3)
[src]
fn set_row(&mut self, i: usize, r: Vec3)
[src]
impl AsMut<[Vec3]> for Mat3
[src]
impl AsRef<[Vec3]> for Mat3
[src]
impl Clone for Mat3
[src]
impl Copy for Mat3
[src]
impl Default for Mat3
[src]
impl PartialEq<Mat3> for Mat3
[src]
impl Debug for Mat3
[src]
impl Div<f32> for Mat3
[src]
type Output = Mat3
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Mat3
[src]
impl<'_> Div<f32> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Mat3
[src]
impl Sub<Mat3> for Mat3
[src]
type Output = Mat3
The resulting type after applying the -
operator.
fn sub(self, rhs: Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl<'_> Sub<&'_ Mat3> for Mat3
[src]
type Output = Mat3
The resulting type after applying the -
operator.
fn sub(self, rhs: &Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl<'_> Sub<Mat3> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the -
operator.
fn sub(self, rhs: Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl<'_, '_> Sub<&'_ Mat3> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the -
operator.
fn sub(self, rhs: &Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl Add<Mat3> for Mat3
[src]
type Output = Mat3
The resulting type after applying the +
operator.
fn add(self, rhs: Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl<'_> Add<&'_ Mat3> for Mat3
[src]
type Output = Mat3
The resulting type after applying the +
operator.
fn add(self, rhs: &Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl<'_> Add<Mat3> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the +
operator.
fn add(self, rhs: Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl<'_, '_> Add<&'_ Mat3> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the +
operator.
fn add(self, rhs: &Mat3) -> Mat3
[src]
Component-wise arithmetic operation.
impl Mul<Vec3> for Mat3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec3) -> Vec3
[src]
Matrix-vector multiplication operation.
impl<'_> Mul<&'_ Vec3> for Mat3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, rhs: &Vec3) -> Vec3
[src]
Matrix-vector multiplication operation.
impl<'_> Mul<Vec3> for &'_ Mat3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec3) -> Vec3
[src]
Matrix-vector multiplication operation.
impl<'_, '_> Mul<&'_ Vec3> for &'_ Mat3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, rhs: &Vec3) -> Vec3
[src]
Matrix-vector multiplication operation.
impl Mul<Mat3> for Mat3
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: Mat3) -> Mat3
[src]
Matrix-matrix multiplication operation.
impl<'_> Mul<&'_ Mat3> for Mat3
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: &Mat3) -> Mat3
[src]
Matrix-matrix multiplication operation.
impl<'_> Mul<Mat3> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: Mat3) -> Mat3
[src]
Matrix-matrix multiplication operation.
impl<'_, '_> Mul<&'_ Mat3> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: &Mat3) -> Mat3
[src]
Matrix-matrix multiplication operation.
impl Mul<f32> for Mat3
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Mat3
[src]
impl Mul<Mat3> for f32
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: Mat3) -> Mat3
[src]
impl<'_> Mul<f32> for &'_ Mat3
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Mat3
[src]
impl<'_> Mul<&'_ Mat3> for f32
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: &Mat3) -> Mat3
[src]
impl Neg for Mat3
[src]
impl<'_> Neg for &'_ Mat3
[src]
impl AddAssign<Mat3> for Mat3
[src]
fn add_assign(&mut self, rhs: Mat3)
[src]
Component-wise arithmetic assignment operation.
impl<'_> AddAssign<&'_ Mat3> for Mat3
[src]
fn add_assign(&mut self, rhs: &Mat3)
[src]
Component-wise arithmetic assignment operation.
impl SubAssign<Mat3> for Mat3
[src]
fn sub_assign(&mut self, rhs: Mat3)
[src]
Component-wise arithmetic assignment operation.
impl<'_> SubAssign<&'_ Mat3> for Mat3
[src]
fn sub_assign(&mut self, rhs: &Mat3)
[src]
Component-wise arithmetic assignment operation.
impl MulAssign<f32> for Mat3
[src]
fn mul_assign(&mut self, rhs: f32)
[src]
impl<'_> MulAssign<&'_ f32> for Mat3
[src]
fn mul_assign(&mut self, rhs: &f32)
[src]
impl DivAssign<f32> for Mat3
[src]
fn div_assign(&mut self, rhs: f32)
[src]
impl<'_> DivAssign<&'_ f32> for Mat3
[src]
fn div_assign(&mut self, rhs: &f32)
[src]
impl Index<usize> for Mat3
[src]
type Output = Vec3
The returned type after indexing.
fn index(&self, idx: usize) -> &Vec3
[src]
Index this matrix as a slice containing its column vectors.
impl IndexMut<usize> for Mat3
[src]
fn index_mut(&mut self, idx: usize) -> &mut Vec3
[src]
Index this matrix as a slice containing its column vectors.
impl StructuralPartialEq for Mat3
[src]
Auto Trait Implementations
impl Send for Mat3
impl Sync for Mat3
impl Unpin for Mat3
impl UnwindSafe for Mat3
impl RefUnwindSafe for Mat3
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,