Struct vodk_math::matrix::Matrix2x2
[−]
[src]
pub struct Matrix2x2<From, To> { pub _11: f32, pub _21: f32, pub _12: f32, pub _22: f32, // some fields omitted }
Fields
_11: f32
_21: f32
_12: f32
_22: f32
Methods
impl<From, To> Matrix2x2<From, To>
[src]
fn new(a11: f32, a21: f32, a12: f32, a22: f32) -> Matrix2x2<From, To>
fn from_slice(from: &[f32]) -> Matrix2x2<From, To>
fn as_slice<'l>(&'l self) -> &'l [f32]
fn as_mut_slice<'l>(&'l mut self) -> &'l mut [f32]
fn row_1<'l>(&'l self) -> &'l [f32; 2]
fn row_2<'l>(&'l self) -> &'l [f32; 2]
fn transform(&self, v: Vector2D<From>) -> Vector2D<To>
fn identity() -> Matrix2x2<From, To>
fn set_indentity(&mut self)
Trait Implementations
impl<From: PartialEq, To: PartialEq> PartialEq for Matrix2x2<From, To>
[src]
fn eq(&self, __arg_0: &Matrix2x2<From, To>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matrix2x2<From, To>) -> bool
This method tests for !=
.
impl<From, Inter, To> Mul<Matrix2x2<Inter, To>> for Matrix2x2<From, Inter>
[src]
type Output = Matrix2x2<From, To>
The resulting type after applying the *
operator
fn mul(self, rhs: Matrix2x2<Inter, To>) -> Matrix2x2<From, To>
The method for the *
operator
impl<From, To> Copy for Matrix2x2<From, To>
[src]
impl<From, To> Clone for Matrix2x2<From, To>
[src]
fn clone(&self) -> Matrix2x2<From, To>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more