[][src]Struct gramit::mat::Mat4

#[repr(C)]
pub struct Mat4 { /* fields omitted */ }

Methods

impl Mat4[src]

pub fn new(col1: Vec4, col2: Vec4, col3: Vec4, col4: Vec4) -> Mat4[src]

Construct a new matrix with the given vectors as columns.

Trait Implementations

impl ApproxEq<Mat4> for Mat4[src]

fn within_threshold(self, rhs: Mat4, threshold: Mat4) -> bool[src]

Compare two matrices for approximate equality, using a third matrix for component-wise thresholds.

impl SquareMatrix for Mat4[src]

type VecType = Vec4

The type used to represent the columns and rows of the matrix type.

impl AsMut<[Vec4]> for Mat4[src]

fn as_mut(&mut self) -> &mut [Vec4][src]

View this matrix as a slice containing its column vectors.

impl AsRef<[Vec4]> for Mat4[src]

fn as_ref(&self) -> &[Vec4][src]

View this matrix as a slice containing its column vectors.

impl Clone for Mat4[src]

impl Copy for Mat4[src]

impl Default for Mat4[src]

impl PartialEq<Mat4> for Mat4[src]

impl Debug for Mat4[src]

impl Div<f32> for Mat4[src]

type Output = Mat4

The resulting type after applying the / operator.

impl<'_> Div<f32> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the / operator.

impl Sub<Mat4> for Mat4[src]

type Output = Mat4

The resulting type after applying the - operator.

fn sub(self, rhs: Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl<'_> Sub<&'_ Mat4> for Mat4[src]

type Output = Mat4

The resulting type after applying the - operator.

fn sub(self, rhs: &Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl<'_> Sub<Mat4> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the - operator.

fn sub(self, rhs: Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl<'_, '_> Sub<&'_ Mat4> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the - operator.

fn sub(self, rhs: &Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl Add<Mat4> for Mat4[src]

type Output = Mat4

The resulting type after applying the + operator.

fn add(self, rhs: Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl<'_> Add<&'_ Mat4> for Mat4[src]

type Output = Mat4

The resulting type after applying the + operator.

fn add(self, rhs: &Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl<'_> Add<Mat4> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the + operator.

fn add(self, rhs: Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl<'_, '_> Add<&'_ Mat4> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the + operator.

fn add(self, rhs: &Mat4) -> Mat4[src]

Component-wise arithmetic operation.

impl Mul<Vec4> for Mat4[src]

type Output = Vec4

The resulting type after applying the * operator.

fn mul(self, rhs: Vec4) -> Vec4[src]

Matrix-vector multiplication operation.

impl<'_> Mul<&'_ Vec4> for Mat4[src]

type Output = Vec4

The resulting type after applying the * operator.

fn mul(self, rhs: &Vec4) -> Vec4[src]

Matrix-vector multiplication operation.

impl<'_> Mul<Vec4> for &'_ Mat4[src]

type Output = Vec4

The resulting type after applying the * operator.

fn mul(self, rhs: Vec4) -> Vec4[src]

Matrix-vector multiplication operation.

impl<'_, '_> Mul<&'_ Vec4> for &'_ Mat4[src]

type Output = Vec4

The resulting type after applying the * operator.

fn mul(self, rhs: &Vec4) -> Vec4[src]

Matrix-vector multiplication operation.

impl Mul<Mat4> for Mat4[src]

type Output = Mat4

The resulting type after applying the * operator.

fn mul(self, rhs: Mat4) -> Mat4[src]

Matrix-matrix multiplication operation.

impl<'_> Mul<&'_ Mat4> for Mat4[src]

type Output = Mat4

The resulting type after applying the * operator.

fn mul(self, rhs: &Mat4) -> Mat4[src]

Matrix-matrix multiplication operation.

impl<'_> Mul<Mat4> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the * operator.

fn mul(self, rhs: Mat4) -> Mat4[src]

Matrix-matrix multiplication operation.

impl<'_, '_> Mul<&'_ Mat4> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the * operator.

fn mul(self, rhs: &Mat4) -> Mat4[src]

Matrix-matrix multiplication operation.

impl Mul<f32> for Mat4[src]

type Output = Mat4

The resulting type after applying the * operator.

impl Mul<Mat4> for f32[src]

type Output = Mat4

The resulting type after applying the * operator.

impl<'_> Mul<f32> for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the * operator.

impl<'_> Mul<&'_ Mat4> for f32[src]

type Output = Mat4

The resulting type after applying the * operator.

impl Neg for Mat4[src]

type Output = Mat4

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Mat4[src]

type Output = Mat4

The resulting type after applying the - operator.

impl AddAssign<Mat4> for Mat4[src]

fn add_assign(&mut self, rhs: Mat4)[src]

Component-wise arithmetic assignment operation.

impl<'_> AddAssign<&'_ Mat4> for Mat4[src]

fn add_assign(&mut self, rhs: &Mat4)[src]

Component-wise arithmetic assignment operation.

impl SubAssign<Mat4> for Mat4[src]

fn sub_assign(&mut self, rhs: Mat4)[src]

Component-wise arithmetic assignment operation.

impl<'_> SubAssign<&'_ Mat4> for Mat4[src]

fn sub_assign(&mut self, rhs: &Mat4)[src]

Component-wise arithmetic assignment operation.

impl MulAssign<f32> for Mat4[src]

impl<'_> MulAssign<&'_ f32> for Mat4[src]

impl DivAssign<f32> for Mat4[src]

impl<'_> DivAssign<&'_ f32> for Mat4[src]

impl Index<usize> for Mat4[src]

type Output = Vec4

The returned type after indexing.

fn index(&self, idx: usize) -> &Vec4[src]

Index this matrix as a slice containing its column vectors.

impl IndexMut<usize> for Mat4[src]

fn index_mut(&mut self, idx: usize) -> &mut Vec4[src]

Index this matrix as a slice containing its column vectors.

impl StructuralPartialEq for Mat4[src]

Auto Trait Implementations

impl Send for Mat4

impl Sync for Mat4

impl Unpin for Mat4

impl UnwindSafe for Mat4

impl RefUnwindSafe for Mat4

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

The type returned in the event of a conversion error.

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.

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

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

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