[−][src]Struct mini_math::Matrix
Methods
impl Matrix
[src]
pub fn identity() -> Self
[src]
pub fn zero() -> Self
[src]
pub fn look_at(target: Point, direction: Vector, up: Vector) -> Self
[src]
pub fn perspective(aspect_ratio: f32, fov: f32, znear: f32, zfar: f32) -> Self
[src]
pub fn translation(v: Vector) -> Self
[src]
pub fn rotation_x(angle: f32) -> Self
[src]
pub fn rotation_y(angle: f32) -> Self
[src]
pub fn rotation_z(angle: f32) -> Self
[src]
pub fn transpose(&self) -> Self
[src]
pub fn invert(&self) -> Self
[src]
Trait Implementations
impl Clone for Matrix
[src]
impl Copy for Matrix
[src]
impl PartialEq<Matrix> for Matrix
[src]
impl Debug for Matrix
[src]
impl Mul<Matrix> for Matrix
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl Mul<Point> for Matrix
[src]
type Output = Point
The resulting type after applying the *
operator.
fn mul(self, rhs: Point) -> Point
[src]
impl Mul<Vector> for Matrix
[src]
type Output = Vector
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector) -> Vector
[src]
impl StructuralPartialEq for Matrix
[src]
Auto Trait Implementations
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
impl RefUnwindSafe for Matrix
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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, 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,