[−][src]Struct linmath::Matrix3
Fields
x: Vector3<T>
y: Vector3<T>
z: Vector3<T>
Methods
impl<T: Float> Matrix3<T>
[src]
impl<T: Float> Matrix3<T>
[src]
pub fn identity() -> Matrix3<T>
[src]
pub fn transpose(m: &Matrix3<T>) -> Matrix3<T>
[src]
pub fn determinant(m: &Matrix3<T>) -> T
[src]
pub fn inverse(m: &Matrix3<T>) -> Option<Matrix3<T>>
[src]
pub fn translate(v: &Vector2<T>) -> Matrix3<T>
[src]
pub fn rotate(rad: T) -> Matrix3<T>
[src]
pub fn scale(v: &Vector2<T>) -> Matrix3<T>
[src]
pub fn ortho(left: T, right: T, bottom: T, top: T) -> Matrix3<T>
[src]
Trait Implementations
impl<T: Copy + Float> Copy for Matrix3<T>
[src]
impl<T: Clone + Float> Clone for Matrix3<T>
[src]
fn clone(&self) -> Matrix3<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: PartialEq + Float> PartialEq<Matrix3<T>> for Matrix3<T>
[src]
impl<T: Float> Add<Matrix3<T>> for Matrix3<T>
[src]
type Output = Matrix3<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Matrix3<T>) -> Self::Output
[src]
impl<T: Float> Sub<Matrix3<T>> for Matrix3<T>
[src]
type Output = Matrix3<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Matrix3<T>) -> Self::Output
[src]
impl<T: Float> Mul<Matrix3<T>> for Matrix3<T>
[src]
type Output = Matrix3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix3<T>) -> Self::Output
[src]
impl<T: Float> Mul<Vector3<T>> for Matrix3<T>
[src]
type Output = Vector3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<T>) -> Self::Output
[src]
impl<T: Float> Mul<T> for Matrix3<T>
[src]
type Output = Matrix3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T: Float> AddAssign<Matrix3<T>> for Matrix3<T>
[src]
fn add_assign(&mut self, rhs: Matrix3<T>)
[src]
impl<T: Float> SubAssign<Matrix3<T>> for Matrix3<T>
[src]
fn sub_assign(&mut self, rhs: Matrix3<T>)
[src]
impl<T: Float> MulAssign<Matrix3<T>> for Matrix3<T>
[src]
fn mul_assign(&mut self, rhs: Matrix3<T>)
[src]
impl<T: Float> MulAssign<T> for Matrix3<T>
[src]
fn mul_assign(&mut self, rhs: T)
[src]
impl<T: Debug + Float> Debug for Matrix3<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
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 for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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 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 for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,