[−][src]Struct rust_3d::Matrix3
Matrix3, a matrix with 3 rows and columns
Fields
data: [[f64; 3]; 3]
Implementations
impl Matrix3
[src]
pub fn identity() -> Matrix3
[src]
Creates a new identity matrix
pub fn zeroes() -> Matrix3
[src]
Creates a new matrix which contains only zeroes
pub fn translation(x: f64, y: f64) -> Matrix3
[src]
Creates a new matrix which applies translation
pub fn scale(x: f64, y: f64) -> Matrix3
[src]
Creates a new matrix which applies scaling
pub fn rotation(rad: Rad) -> Matrix3
[src]
Creates a new matrix which applies rotation
Trait Implementations
impl Clone for Matrix3
[src]
impl Debug for Matrix3
[src]
impl Default for Matrix3
[src]
impl<'_> Mul<&'_ Matrix3> for Matrix3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: &Self) -> Self
[src]
impl<'_> Mul<&'_ Matrix3> for &'_ Matrix3
[src]
type Output = Matrix3
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Matrix3
[src]
impl Mul<Matrix3> for Matrix3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Mul<f64> for Matrix3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> Self
[src]
impl<'_> Mul<f64> for &'_ Matrix3
[src]
type Output = Matrix3
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> Matrix3
[src]
impl PartialEq<Matrix3> for Matrix3
[src]
impl PartialOrd<Matrix3> for Matrix3
[src]
fn partial_cmp(&self, other: &Matrix3) -> Option<Ordering>
[src]
fn lt(&self, other: &Matrix3) -> bool
[src]
fn le(&self, other: &Matrix3) -> bool
[src]
fn gt(&self, other: &Matrix3) -> bool
[src]
fn ge(&self, other: &Matrix3) -> bool
[src]
impl StructuralPartialEq for Matrix3
[src]
Auto Trait Implementations
impl RefUnwindSafe for Matrix3
impl Send for Matrix3
impl Sync for Matrix3
impl Unpin for Matrix3
impl UnwindSafe for Matrix3
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<U> 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<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,