Struct rust_3d::Matrix3
[−]
[src]
pub struct Matrix3 { pub data: [[f64; 3]; 3], }
Matrix3, a matrix with 3 rows and columns
Fields
data: [[f64; 3]; 3]
Methods
impl Matrix3
[src]
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 Debug for Matrix3
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Matrix3
[src]
fn eq(&self, __arg_0: &Matrix3) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matrix3) -> bool
[src]
This method tests for !=
.
impl PartialOrd for Matrix3
[src]
fn partial_cmp(&self, __arg_0: &Matrix3) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Matrix3) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Matrix3) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Matrix3) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Matrix3) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Clone for Matrix3
[src]
fn clone(&self) -> Matrix3
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Matrix3
[src]
impl Mul for Matrix3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
Performs the *
operation.