Struct xmath::Matrix
[−]
[src]
pub struct Matrix { /* fields omitted */ }
Methods
impl Matrix
[src]
fn zero() -> Self
fn new(
m00: f32,
m01: f32,
m02: f32,
m03: f32,
m10: f32,
m11: f32,
m12: f32,
m13: f32,
m20: f32,
m21: f32,
m22: f32,
m23: f32,
m30: f32,
m31: f32,
m32: f32,
m33: f32
) -> Self
m00: f32,
m01: f32,
m02: f32,
m03: f32,
m10: f32,
m11: f32,
m12: f32,
m13: f32,
m20: f32,
m21: f32,
m22: f32,
m23: f32,
m30: f32,
m31: f32,
m32: f32,
m33: f32
) -> Self
fn identity() -> Self
fn rotation_x(rad: f32) -> Self
fn rotation_y(rad: f32) -> Self
fn rotation_z(rad: f32) -> Self
fn orthographic(
view_width: f32,
view_height: f32,
near_z: f32,
far_z: f32
) -> Self
view_width: f32,
view_height: f32,
near_z: f32,
far_z: f32
) -> Self
fn orthographic_off_center(
view_left: f32,
view_right: f32,
view_bottom: f32,
view_top: f32,
near_z: f32,
far_z: f32
) -> Self
view_left: f32,
view_right: f32,
view_bottom: f32,
view_top: f32,
near_z: f32,
far_z: f32
) -> Self
fn look_at(eye: Vector3, focus: Vector3, up: Vector3) -> Self
fn look_to(eye: Vector3, dir: Vector3, up: Vector3) -> Self
fn perspective(width: f32, height: f32, near_z: f32, far_z: f32) -> Self
fn perspective_fov(fov: f32, aspect: f32, near_z: f32, far_z: f32) -> Self
aspect: Width / Height
fn translation(ox: f32, oy: f32, oz: f32) -> Self
fn transpose(self) -> Self
Trait Implementations
impl PartialEq for Matrix
[src]
fn eq(&self, __arg_0: &Matrix) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matrix) -> bool
This method tests for !=
.
impl Clone for Matrix
[src]
fn clone(&self) -> Matrix
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
impl Debug for Matrix
[src]
impl Mul for Matrix
[src]
type Output = Matrix
The resulting type after applying the *
operator
fn mul(self, rhs: Matrix) -> Matrix
The method for the *
operator
impl<'a> Mul<Matrix> for &'a Matrix
[src]
type Output = Matrix
The resulting type after applying the *
operator
fn mul(self, rhs: Matrix) -> Matrix
The method for the *
operator
impl<'a> Mul<&'a Matrix> for Matrix
[src]
type Output = Matrix
The resulting type after applying the *
operator
fn mul(self, rhs: &'a Matrix) -> Matrix
The method for the *
operator
impl<'a, 'b> Mul<&'a Matrix> for &'b Matrix
[src]
type Output = Matrix
The resulting type after applying the *
operator
fn mul(self, rhs: &'a Matrix) -> Matrix
The method for the *
operator
impl Index<usize> for Matrix
[src]
type Output = [f32; 4]
The returned type after indexing
fn index<'a>(&'a self, index: usize) -> &'a Self::Output
The method for the indexing (container[index]
) operation
impl Into<[[f32; 4]; 4]> for Matrix
[src]
glium_text support