Mat

Struct Mat 

Source
pub struct Mat<S: Scalar, const NROWS: usize, const NCOLS: usize>(/* private fields */);

Implementations§

Source§

impl<S: Scalar, const NROWS: usize, const NCOLS: usize> Mat<S, NROWS, NCOLS>

Source

pub fn zeros() -> Self

Source

pub fn ones() -> Self

Source§

impl<S: Scalar, const DIM: usize> Mat<S, DIM, DIM>

Source

pub fn identity() -> Self

Source§

impl<S: ScalarFloat> Mat<S, 3, 3>

Source

pub fn rotate_xyz(rot_x: S, rot_y: S, rot_z: S) -> Self

Source§

impl<S: ScalarFloat> Mat<S, 4, 4>

Source

pub fn rotate_xyz_translate( rot_x: S, rot_y: S, rot_z: S, translate: Gec<S, 3>, ) -> Self

Trait Implementations§

Source§

impl<S: Clone + Scalar, const NROWS: usize, const NCOLS: usize> Clone for Mat<S, NROWS, NCOLS>

Source§

fn clone(&self) -> Mat<S, NROWS, NCOLS>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Debug + Scalar, const NROWS: usize, const NCOLS: usize> Debug for Mat<S, NROWS, NCOLS>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<S: Scalar, const NROWS: usize, const NCOLS: usize> From<[[S; NCOLS]; NROWS]> for Mat<S, NROWS, NCOLS>

Source§

fn from(value: [[S; NCOLS]; NROWS]) -> Self

Converts to this type from the input type.
Source§

impl<S: Scalar, const NROWS: usize, const NCOLS: usize> Index<[usize; 2]> for Mat<S, NROWS, NCOLS>

Source§

type Output = S

The returned type after indexing.
Source§

fn index(&self, [row, col]: [usize; 2]) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<S: Scalar, const NROWS: usize, const NCOLS: usize> IndexMut<[usize; 2]> for Mat<S, NROWS, NCOLS>

Source§

fn index_mut(&mut self, [row, col]: [usize; 2]) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<S: Scalar, const DIM1: usize, const DIM2: usize, const DIM3: usize> Mul<&Mat<S, DIM2, DIM3>> for &Mat<S, DIM1, DIM2>

Source§

type Output = Mat<S, DIM1, DIM3>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mat<S, DIM2, DIM3>) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Scalar, const DIM1: usize, const DIM2: usize, const DIM3: usize> Mul<&Mat<S, DIM2, DIM3>> for Mat<S, DIM1, DIM2>

Source§

type Output = Mat<S, DIM1, DIM3>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mat<S, DIM2, DIM3>) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Scalar, const NROWS: usize, const NCOLS: usize> Mul<Gec<S, NCOLS>> for &Mat<S, NROWS, NCOLS>

Source§

type Output = Gec<S, NROWS>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Gec<S, NCOLS>) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Scalar, const NROWS: usize, const NCOLS: usize> Mul<Gec<S, NCOLS>> for Mat<S, NROWS, NCOLS>

Source§

type Output = Gec<S, NROWS>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Gec<S, NCOLS>) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Scalar, const DIM1: usize, const DIM2: usize, const DIM3: usize> Mul<Mat<S, DIM2, DIM3>> for &Mat<S, DIM1, DIM2>

Source§

type Output = Mat<S, DIM1, DIM3>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mat<S, DIM2, DIM3>) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Scalar, const DIM1: usize, const DIM2: usize, const DIM3: usize> Mul<Mat<S, DIM2, DIM3>> for Mat<S, DIM1, DIM2>

Source§

type Output = Mat<S, DIM1, DIM3>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mat<S, DIM2, DIM3>) -> Self::Output

Performs the * operation. Read more

Auto Trait Implementations§

§

impl<S, const NROWS: usize, const NCOLS: usize> Freeze for Mat<S, NROWS, NCOLS>
where S: Freeze,

§

impl<S, const NROWS: usize, const NCOLS: usize> RefUnwindSafe for Mat<S, NROWS, NCOLS>
where S: RefUnwindSafe,

§

impl<S, const NROWS: usize, const NCOLS: usize> Send for Mat<S, NROWS, NCOLS>
where S: Send,

§

impl<S, const NROWS: usize, const NCOLS: usize> Sync for Mat<S, NROWS, NCOLS>
where S: Sync,

§

impl<S, const NROWS: usize, const NCOLS: usize> Unpin for Mat<S, NROWS, NCOLS>
where S: Unpin,

§

impl<S, const NROWS: usize, const NCOLS: usize> UnwindSafe for Mat<S, NROWS, NCOLS>
where S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V