Struct ami::Mat4 [−][src]
A 4x4 Matrix
Methods
impl Mat4[src]
impl Mat4pub fn matrix(self, matrix: [f32; 16]) -> Mat4[src]
pub fn matrix(self, matrix: [f32; 16]) -> Mat4Multiply self by a matrix.
pub fn scale(self, x: f32, y: f32, z: f32) -> Mat4[src]
pub fn scale(self, x: f32, y: f32, z: f32) -> Mat4Multiply self by a scale transformation matrix.
pub fn translate(self, x: f32, y: f32, z: f32) -> Mat4[src]
pub fn translate(self, x: f32, y: f32, z: f32) -> Mat4Multiply self by a translation matrix.
pub fn rotate(self, x: f32, y: f32, z: f32) -> Mat4[src]
pub fn rotate(self, x: f32, y: f32, z: f32) -> Mat4Multiply self by a rotation matrix. x, y and z are in PI
Radians.
Trait Implementations
impl Clone for Mat4[src]
impl Clone for Mat4fn clone(&self) -> Mat4[src]
fn clone(&self) -> Mat4Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Mat4[src]
impl Copy for Mat4impl PartialEq for Mat4[src]
impl PartialEq for Mat4fn eq(&self, other: &Mat4) -> bool[src]
fn eq(&self, other: &Mat4) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Mat4) -> bool[src]
fn ne(&self, other: &Mat4) -> boolThis method tests for !=.
impl Mul<Frustum> for Mat4[src]
impl Mul<Frustum> for Mat4type Output = Frustum
The resulting type after applying the * operator.
fn mul(self, rhs: Frustum) -> Self::Output[src]
fn mul(self, rhs: Frustum) -> Self::OutputPerforms the * operation.
impl Mul<Plane> for Mat4[src]
impl Mul<Plane> for Mat4type Output = Plane
The resulting type after applying the * operator.
fn mul(self, rhs: Plane) -> Self::Output[src]
fn mul(self, rhs: Plane) -> Self::OutputPerforms the * operation.
impl Mul<Vec3> for Mat4[src]
impl Mul<Vec3> for Mat4type Output = Vec3
The resulting type after applying the * operator.
fn mul(self, rhs: Vec3) -> Self::Output[src]
fn mul(self, rhs: Vec3) -> Self::OutputTransform as a position.
impl Mul<Vec4> for Mat4[src]
impl Mul<Vec4> for Mat4type Output = Vec4
The resulting type after applying the * operator.
fn mul(self, rhs: Vec4) -> Self::Output[src]
fn mul(self, rhs: Vec4) -> Self::OutputTransform as a position.
impl Mul<Mat4> for Mat4[src]
impl Mul<Mat4> for Mat4type Output = Mat4
The resulting type after applying the * operator.
fn mul(self, rhs: Mat4) -> Self::Output[src]
fn mul(self, rhs: Mat4) -> Self::OutputPerforms the * operation.
impl Display for Mat4[src]
impl Display for Mat4