[−][src]Struct linmath::Matrix4
Fields
x: Vector4<T>
y: Vector4<T>
z: Vector4<T>
w: Vector4<T>
Methods
impl<T: Float> Matrix4<T>
[src]
impl<T: Float> Matrix4<T>
[src]
pub fn identity() -> Matrix4<T>
[src]
pub fn transpose(m: &Matrix4<T>) -> Matrix4<T>
[src]
pub fn determinant(m: &Matrix4<T>) -> T
[src]
pub fn inverse(m: &Matrix4<T>) -> Option<Matrix4<T>>
[src]
pub fn translate(v: &Vector3<T>) -> Matrix4<T>
[src]
pub fn rotate(rad: T, v: &Vector3<T>) -> Matrix4<T>
[src]
pub fn scale(v: &Vector3<T>) -> Matrix4<T>
[src]
pub fn ortho(
left: T,
right: T,
bottom: T,
top: T,
near: T,
far: T
) -> Matrix4<T>
[src]
left: T,
right: T,
bottom: T,
top: T,
near: T,
far: T
) -> Matrix4<T>
pub fn perspective(fovy: T, aspect: T, near: T, far: T) -> Matrix4<T>
[src]
Trait Implementations
impl<T: Copy + Float> Copy for Matrix4<T>
[src]
impl<T: PartialEq + Float> PartialEq<Matrix4<T>> for Matrix4<T>
[src]
impl<T: Clone + Float> Clone for Matrix4<T>
[src]
fn clone(&self) -> Matrix4<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug + Float> Debug for Matrix4<T>
[src]
impl<T: Float> Sub<Matrix4<T>> for Matrix4<T>
[src]
type Output = Matrix4<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Matrix4<T>) -> Self::Output
[src]
impl<T: Float> Add<Matrix4<T>> for Matrix4<T>
[src]
type Output = Matrix4<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Matrix4<T>) -> Self::Output
[src]
impl<T: Float> Mul<Matrix4<T>> for Matrix4<T>
[src]
type Output = Matrix4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix4<T>) -> Self::Output
[src]
impl<T: Float> Mul<Vector4<T>> for Matrix4<T>
[src]
type Output = Vector4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector4<T>) -> Self::Output
[src]
impl<T: Float> Mul<T> for Matrix4<T>
[src]
type Output = Matrix4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T: Float> AddAssign<Matrix4<T>> for Matrix4<T>
[src]
fn add_assign(&mut self, rhs: Matrix4<T>)
[src]
impl<T: Float> SubAssign<Matrix4<T>> for Matrix4<T>
[src]
fn sub_assign(&mut self, rhs: Matrix4<T>)
[src]
impl<T: Float> MulAssign<Matrix4<T>> for Matrix4<T>
[src]
fn mul_assign(&mut self, rhs: Matrix4<T>)
[src]
impl<T: Float> MulAssign<T> for Matrix4<T>
[src]
fn mul_assign(&mut self, rhs: T)
[src]
Auto Trait Implementations
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 for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,