Struct indigo::math::Matrix4 [−][src]
A 4x4 matrix of T
.
Fields
columns: [Vector4<T>; 4]
Implementations
impl<T: Number + Copy> Matrix4<T>
[src]
pub fn new(
column0: Vector4<T>,
column1: Vector4<T>,
column2: Vector4<T>,
column3: Vector4<T>
) -> Self
[src]
column0: Vector4<T>,
column1: Vector4<T>,
column2: Vector4<T>,
column3: Vector4<T>
) -> Self
Creates a new matrix from a set of column vectors.
pub fn scale(scale: Vector3<T>) -> Self
[src]
Creates a new matrix from a three-dimensional scaling factor.
pub fn row(&self, index: usize) -> Vector4<T>
[src]
Returns a Vector4
containing the components in a row.
pub fn rows(&self) -> [Vector4<T>; 4]
[src]
Returns an array of Vector4
containing the components of each row.
impl Matrix4<f32>
[src]
pub fn orthographic_projection(size: Vector2<f32>) -> Self
[src]
Creates a new orthographic projection matrix of the given two-dimensional size.
Trait Implementations
impl<T: Clone> Clone for Matrix4<T>
[src]
impl<T: Copy> Copy for Matrix4<T>
[src]
impl<T: Number + Copy> Default for Matrix4<T>
[src]
impl<T: Eq> Eq for Matrix4<T>
[src]
impl<T: Number + Copy> Mul<Matrix4<T>> for Matrix4<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl<T: Number + Copy> MulAssign<Matrix4<T>> for Matrix4<T>
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl<T: Number + Copy> One for Matrix4<T>
[src]
fn one() -> Self
[src]
pub fn set_one(&mut self)
[src]
pub fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl<T: PartialEq> PartialEq<Matrix4<T>> for Matrix4<T>
[src]
impl<T> StructuralEq for Matrix4<T>
[src]
impl<T> StructuralPartialEq for Matrix4<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Matrix4<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Matrix4<T> where
T: Send,
T: Send,
impl<T> Sync for Matrix4<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Matrix4<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Matrix4<T> where
T: UnwindSafe,
T: UnwindSafe,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,