[][src]Struct gramit::mat::Mat2

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

Methods

impl Mat2[src]

pub fn new(col1: Vec2, col2: Vec2) -> Mat2[src]

Construct a new matrix with the given vectors as columns.

Trait Implementations

impl ApproxEq<Mat2> for Mat2[src]

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

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

impl SquareMatrix for Mat2[src]

type VecType = Vec2

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

impl AsMut<[Vec2]> for Mat2[src]

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

View this matrix as a slice containing its column vectors.

impl AsRef<[Vec2]> for Mat2[src]

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

View this matrix as a slice containing its column vectors.

impl Clone for Mat2[src]

impl Copy for Mat2[src]

impl Default for Mat2[src]

impl PartialEq<Mat2> for Mat2[src]

impl Debug for Mat2[src]

impl Div<f32> for Mat2[src]

type Output = Mat2

The resulting type after applying the / operator.

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

type Output = Mat2

The resulting type after applying the / operator.

impl Sub<Mat2> for Mat2[src]

type Output = Mat2

The resulting type after applying the - operator.

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

Component-wise arithmetic operation.

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

type Output = Mat2

The resulting type after applying the - operator.

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

Component-wise arithmetic operation.

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

type Output = Mat2

The resulting type after applying the - operator.

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

Component-wise arithmetic operation.

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

type Output = Mat2

The resulting type after applying the - operator.

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

Component-wise arithmetic operation.

impl Add<Mat2> for Mat2[src]

type Output = Mat2

The resulting type after applying the + operator.

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

Component-wise arithmetic operation.

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

type Output = Mat2

The resulting type after applying the + operator.

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

Component-wise arithmetic operation.

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

type Output = Mat2

The resulting type after applying the + operator.

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

Component-wise arithmetic operation.

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

type Output = Mat2

The resulting type after applying the + operator.

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

Component-wise arithmetic operation.

impl Mul<Vec2> for Mat2[src]

type Output = Vec2

The resulting type after applying the * operator.

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

Matrix-vector multiplication operation.

impl<'_> Mul<&'_ Vec2> for Mat2[src]

type Output = Vec2

The resulting type after applying the * operator.

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

Matrix-vector multiplication operation.

impl<'_> Mul<Vec2> for &'_ Mat2[src]

type Output = Vec2

The resulting type after applying the * operator.

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

Matrix-vector multiplication operation.

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

type Output = Vec2

The resulting type after applying the * operator.

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

Matrix-vector multiplication operation.

impl Mul<Mat2> for Mat2[src]

type Output = Mat2

The resulting type after applying the * operator.

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

Matrix-matrix multiplication operation.

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

type Output = Mat2

The resulting type after applying the * operator.

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

Matrix-matrix multiplication operation.

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

type Output = Mat2

The resulting type after applying the * operator.

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

Matrix-matrix multiplication operation.

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

type Output = Mat2

The resulting type after applying the * operator.

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

Matrix-matrix multiplication operation.

impl Mul<f32> for Mat2[src]

type Output = Mat2

The resulting type after applying the * operator.

impl Mul<Mat2> for f32[src]

type Output = Mat2

The resulting type after applying the * operator.

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

type Output = Mat2

The resulting type after applying the * operator.

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

type Output = Mat2

The resulting type after applying the * operator.

impl Neg for Mat2[src]

type Output = Mat2

The resulting type after applying the - operator.

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

type Output = Mat2

The resulting type after applying the - operator.

impl AddAssign<Mat2> for Mat2[src]

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

Component-wise arithmetic assignment operation.

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

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

Component-wise arithmetic assignment operation.

impl SubAssign<Mat2> for Mat2[src]

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

Component-wise arithmetic assignment operation.

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

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

Component-wise arithmetic assignment operation.

impl MulAssign<f32> for Mat2[src]

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

impl DivAssign<f32> for Mat2[src]

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

impl Index<usize> for Mat2[src]

type Output = Vec2

The returned type after indexing.

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

Index this matrix as a slice containing its column vectors.

impl IndexMut<usize> for Mat2[src]

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

Index this matrix as a slice containing its column vectors.

impl StructuralPartialEq for Mat2[src]

Auto Trait Implementations

impl Send for Mat2

impl Sync for Mat2

impl Unpin for Mat2

impl UnwindSafe for Mat2

impl RefUnwindSafe for Mat2

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]