Struct newport_math::mat4::Matrix4 [−][src]
Fields
x_axis: Vector4
y_axis: Vector4
z_axis: Vector4
w_axis: Vector4
Implementations
impl Matrix4
[src]
pub const ZERO: Self
[src]
pub const IDENTITY: Self
[src]
pub const fn from_cols(
x_axis: Vector4,
y_axis: Vector4,
z_axis: Vector4,
w_axis: Vector4
) -> Self
[src]
x_axis: Vector4,
y_axis: Vector4,
z_axis: Vector4,
w_axis: Vector4
) -> Self
pub const fn from_rows(
x_axis: Vector4,
y_axis: Vector4,
z_axis: Vector4,
w_axis: Vector4
) -> Self
[src]
x_axis: Vector4,
y_axis: Vector4,
z_axis: Vector4,
w_axis: Vector4
) -> Self
pub fn col(&self, index: usize) -> Vector4
[src]
pub fn row(&self, index: usize) -> Vector4
[src]
pub const fn ortho(width: f32, height: f32, far: f32, near: f32) -> Self
[src]
pub fn translate(xyz: Vector3) -> Matrix4
[src]
Trait Implementations
impl Clone for Matrix4
[src]
fn clone(&self) -> Matrix4
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Matrix4
[src]
impl Debug for Matrix4
[src]
impl Default for Matrix4
[src]
impl Mul<Matrix4> for Matrix4
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl Mul<Vector4> for Matrix4
[src]
type Output = Vector4
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector4) -> Self::Output
[src]
impl MulAssign<Matrix4> for Matrix4
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl PartialEq<Matrix4> for Matrix4
[src]
impl PartialOrd<Matrix4> for Matrix4
[src]
fn partial_cmp(&self, other: &Matrix4) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for Matrix4
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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.
pub 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>,