[][src]Struct ezcgmath::matrix::Matrix3x3

#[repr(C)]pub struct Matrix3x3 {
    pub c00: Scalar,
    pub c10: Scalar,
    pub c20: Scalar,
    pub c01: Scalar,
    pub c11: Scalar,
    pub c21: Scalar,
    pub c02: Scalar,
    pub c12: Scalar,
    pub c22: Scalar,
}

A 3 x 3 Matrix.

Fields

c00: Scalarc10: Scalarc20: Scalarc01: Scalarc11: Scalarc21: Scalarc02: Scalarc12: Scalarc22: Scalar

Implementations

impl Matrix3x3[src]

pub const fn identity() -> Self[src]

pub fn from_look_at(forward: Vector3, up: Vector3) -> Self[src]

Creates a new so called "look at" rotation. This rotation will point in the forward direction with the given up direction.

As a reminder, this will create a left-handed rotation matrix. If you require a right-handed coordinate system, you'll have to convert to it with with a reflection matrix.

Trait Implementations

impl AbsDiffEq<Matrix3x3> for Matrix3x3[src]

type Epsilon = Scalar

Used for specifying relative comparisons.

impl Add<Matrix3x3> for Matrix3x3[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Matrix3x3> for Matrix3x3[src]

impl Clone for Matrix3x3[src]

impl Copy for Matrix3x3[src]

impl Debug for Matrix3x3[src]

impl Default for Matrix3x3[src]

impl Mul<Matrix1x3> for Matrix3x3[src]

type Output = Matrix1x3

The resulting type after applying the * operator.

impl Mul<Matrix3x3> for Matrix3x3[src]

type Output = Matrix3x3

The resulting type after applying the * operator.

impl Mul<Matrix3x3> for Vector3[src]

type Output = Vector3

The resulting type after applying the * operator.

impl Mul<f32> for Matrix3x3[src]

type Output = Self

The resulting type after applying the * operator.

impl MulAssign<Matrix3x3> for Matrix3x3[src]

impl MulAssign<Matrix3x3> for Vector3[src]

impl MulAssign<f32> for Matrix3x3[src]

impl PartialEq<Matrix3x3> for Matrix3x3[src]

impl RelativeEq<Matrix3x3> for Matrix3x3[src]

impl StructuralPartialEq for Matrix3x3[src]

impl Sub<Matrix3x3> for Matrix3x3[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<Matrix3x3> for Matrix3x3[src]

impl UlpsEq<Matrix3x3> for Matrix3x3[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.