Struct xmath::Matrix
[−]
[src]
pub struct Matrix { // some fields omitted }
Methods
impl Matrix
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
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
fn orthographic_off_center(view_left: f32, view_right: f32, view_bottom: f32, view_top: f32, near_z: f32, far_z: f32) -> 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 Mul for Matrix
impl<'a> Mul<Matrix> for &'a Matrix
impl<'a> Mul<&'a Matrix> for Matrix
impl<'a, 'b> Mul<&'a Matrix> for &'b Matrix
impl Index<usize> for Matrix
impl Into<[[f32; 4]; 4]> for Matrix
glium_text support