[−][src]Struct ico_math::Matrix4x4
Fields
m: [__m128; 4]
Methods
impl Matrix4x4
[src]
pub 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
) -> Matrix4x4
[src]
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
) -> Matrix4x4
pub fn zero() -> Matrix4x4
[src]
pub fn identity() -> Matrix4x4
[src]
pub fn from_columns(
c0: Vector4,
c1: Vector4,
c2: Vector4,
c3: Vector4
) -> Matrix4x4
[src]
c0: Vector4,
c1: Vector4,
c2: Vector4,
c3: Vector4
) -> Matrix4x4
pub fn from_rows(
r0: Vector4,
r1: Vector4,
r2: Vector4,
r3: Vector4
) -> Matrix4x4
[src]
r0: Vector4,
r1: Vector4,
r2: Vector4,
r3: Vector4
) -> Matrix4x4
pub fn transpose(&self) -> Matrix4x4
[src]
pub fn add(a: Matrix4x4, b: Matrix4x4) -> Matrix4x4
[src]
pub fn sub(a: Matrix4x4, b: Matrix4x4) -> Matrix4x4
[src]
pub fn scale(mat: Matrix4x4, value: f32) -> Matrix4x4
[src]
pub fn mul(a: Matrix4x4, b: Matrix4x4) -> Matrix4x4
[src]
pub fn mul_vec(mat: Matrix4x4, v1: Vector4) -> Vector4
[src]
pub fn transform_point(mat: Matrix4x4, v1: Vector3) -> Vector4
[src]
pub fn transform_vector(mat: Matrix4x4, v1: Vector3) -> Vector4
[src]
pub fn from_rotation(q: Quaternion) -> Matrix4x4
[src]
From Essential Mathematics for games 2nd ed.
pub fn from_trs(
translation: Vector3,
rotation: Quaternion,
uniform_scale: f32
) -> Matrix4x4
[src]
translation: Vector3,
rotation: Quaternion,
uniform_scale: f32
) -> Matrix4x4
Trait Implementations
impl Clone for Matrix4x4
[src]
fn clone(&self) -> Matrix4x4
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Matrix4x4> for Matrix4x4
[src]
fn eq(&self, other: &Matrix4x4) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for Matrix4x4
[src]
impl Mul<Matrix4x4> for Matrix4x4
[src]
Auto Trait Implementations
impl Sync for Matrix4x4
impl Send for Matrix4x4
impl Unpin for Matrix4x4
impl RefUnwindSafe for Matrix4x4
impl UnwindSafe for Matrix4x4
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,