Struct rs_math3d::matrix::Matrix3

source ·
#[repr(C)]
pub struct Matrix3<T: Scalar> { pub col: [Vector3<T>; 3], }

Fields§

§col: [Vector3<T>; 3]

Implementations§

source§

impl<T: Scalar> Matrix3<T>

source

pub fn new( m0: T, m1: T, m2: T, m3: T, m4: T, m5: T, m6: T, m7: T, m8: T ) -> Self

source

pub fn identity() -> Self

source

pub fn determinant(&self) -> T

source

pub fn transpose(&self) -> Self

source

pub fn inverse(&self) -> Self

source

pub fn mul_matrix_matrix(l: &Self, r: &Self) -> Self

source

pub fn mul_matrix_vector(l: &Self, r: &Vector3<T>) -> Vector3<T>

source

pub fn mul_vector_matrix(l: &Vector3<T>, r: &Self) -> Vector3<T>

source

pub fn add_matrix_matrix(l: &Self, r: &Self) -> Self

source

pub fn sub_matrix_matrix(l: &Self, r: &Self) -> Self

source§

impl<T: FloatScalar> Matrix3<T>

source

pub fn of_axis_angle(axis: &Vector3<T>, angle: T) -> Self

Trait Implementations§

source§

impl<T: Scalar> Add for Matrix3<T>

§

type Output = Matrix3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Matrix3<T>) -> Matrix3<T>

Performs the + operation. Read more
source§

impl<T: Clone + Scalar> Clone for Matrix3<T>

source§

fn clone(&self) -> Matrix3<T>

Returns a copy 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<T: Debug + Scalar> Debug for Matrix3<T>

source§

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

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

impl<T: Scalar> Mul<Matrix3<T>> for Vector3<T>

§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Matrix3<T>) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Scalar> Mul<Vector3<T>> for Matrix3<T>

§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Vector3<T>) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Scalar> Mul for Matrix3<T>

§

type Output = Matrix3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Matrix3<T>) -> Matrix3<T>

Performs the * operation. Read more
source§

impl<T: Scalar> Sub for Matrix3<T>

§

type Output = Matrix3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Matrix3<T>) -> Matrix3<T>

Performs the - operation. Read more
source§

impl<T: Copy + Scalar> Copy for Matrix3<T>

Auto Trait Implementations§

§

impl<T> Freeze for Matrix3<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Matrix3<T>
where T: RefUnwindSafe,

§

impl<T> Send for Matrix3<T>
where T: Send,

§

impl<T> Sync for Matrix3<T>
where T: Sync,

§

impl<T> Unpin for Matrix3<T>
where T: Unpin,

§

impl<T> UnwindSafe for Matrix3<T>
where T: 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> 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,

§

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>,

§

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>,

§

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.