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

type Output = Matrix

fn mul(self, rhs: Matrix) -> Matrix

impl<'a> Mul<Matrix> for &'a Matrix

type Output = Matrix

fn mul(self, rhs: Matrix) -> Matrix

impl<'a> Mul<&'a Matrix> for Matrix

type Output = Matrix

fn mul(self, rhs: &'a Matrix) -> Matrix

impl<'a, 'b> Mul<&'a Matrix> for &'b Matrix

type Output = Matrix

fn mul(self, rhs: &'a Matrix) -> Matrix

impl Index<usize> for Matrix

type Output = [f32; 4]

fn index<'a>(&'a self, index: usize) -> &'a Self::Output

impl Into<[[f32; 4]; 4]> for Matrix

glium_text support

fn into(self) -> [[f32; 4]; 4]

Derived Implementations

impl Debug for Matrix

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Matrix

fn clone(&self) -> Matrix

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq for Matrix

fn eq(&self, __arg_0: &Matrix) -> bool

fn ne(&self, __arg_0: &Matrix) -> bool