Struct vodk_math::matrix::Matrix3x3
[−]
[src]
pub struct Matrix3x3<From, To> { pub _11: f32, pub _21: f32, pub _31: f32, pub _12: f32, pub _22: f32, pub _32: f32, pub _13: f32, pub _23: f32, pub _33: f32, // some fields omitted }
Fields
_11: f32
_21: f32
_31: f32
_12: f32
_22: f32
_32: f32
_13: f32
_23: f32
_33: f32
Methods
impl<From, To> Matrix3x3<From, To>
[src]
fn new(
a11: f32,
a21: f32,
a31: f32,
a12: f32,
a22: f32,
a32: f32,
a13: f32,
a23: f32,
a33: f32
) -> Matrix3x3<From, To>
a11: f32,
a21: f32,
a31: f32,
a12: f32,
a22: f32,
a32: f32,
a13: f32,
a23: f32,
a33: f32
) -> Matrix3x3<From, To>
fn from_slice(from: &[f32]) -> Matrix3x3<From, To>
fn as_slice<'l>(&'l self) -> &'l [f32]
fn as_mut_slice<'l>(&'l mut self) -> &'l mut [f32]
fn transform(&self, p: Vector3D<From>) -> Vector3D<To>
fn transform_2d(&self, p: Vector2D<From>) -> Vector2D<To>
fn scale_by(&mut self, v: Vector2D<To>)
fn scale(v: Vector2D<To>) -> Matrix3x3<From, To>
fn translation(v: Vector2D<To>) -> Matrix3x3<From, To>
fn rotation(rad: f32) -> Matrix3x3<From, To>
fn row_1<'l>(&'l self) -> &'l [f32; 3]
fn row_2<'l>(&'l self) -> &'l [f32; 3]
fn row_3<'l>(&'l self) -> &'l [f32; 3]
fn identity() -> Matrix3x3<From, To>
fn set_indentity(&mut self)
Trait Implementations
impl<From: PartialEq, To: PartialEq> PartialEq for Matrix3x3<From, To>
[src]
fn eq(&self, __arg_0: &Matrix3x3<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: &Matrix3x3<From, To>) -> bool
This method tests for !=
.
impl<From, Inter, To> Mul<Matrix3x3<Inter, To>> for Matrix3x3<From, Inter>
[src]
type Output = Matrix3x3<From, To>
The resulting type after applying the *
operator
fn mul(self, rhs: Matrix3x3<Inter, To>) -> Matrix3x3<From, To>
The method for the *
operator
impl<From, To> Mul<Vector3D<From>> for Matrix3x3<From, To>
[src]
type Output = Vector3D<To>
The resulting type after applying the *
operator
fn mul(self, rhs: Vector3D<From>) -> Vector3D<To>
The method for the *
operator
impl<From, To> Copy for Matrix3x3<From, To>
[src]
impl<From, To> Clone for Matrix3x3<From, To>
[src]
fn clone(&self) -> Matrix3x3<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