pub struct Mat4d { /* private fields */ }
Implementations
sourceimpl Mat4d
impl Mat4d
pub fn col(&self, index: usize) -> Vec4d
pub fn row(&self, index: usize) -> Vec4d
pub fn is_nan(&self) -> bool
pub fn is_infinite(&self) -> bool
pub fn is_finite(&self) -> bool
pub fn transpose(&self) -> Self
pub fn determinant(&self) -> f64
pub fn inverse(&self) -> Self
pub fn try_inverse(&self) -> Option<Self>
sourceimpl Mat4d
impl Mat4d
pub fn from_array(m: [f64; 16]) -> Self
pub fn from_array_2d(m: [[f64; 4]; 4]) -> Self
pub fn from_diagonal(diagonal: Vec4d) -> Self
sourceimpl Mat4d
impl Mat4d
pub fn translation(translate: Vec3d) -> Self
pub fn rotation_x(angle: f64) -> Self
pub fn rotation_y(angle: f64) -> Self
pub fn rotation_z(angle: f64) -> Self
pub fn rotation_axis(axis: Vec3d, angle: f64) -> Self
pub fn scale(scale: Vec3d) -> Self
pub fn look_at(eye: Vec3d, target: Vec3d, up: Vec3d) -> Self
pub fn perspective(fovy: f64, aspect: f64, z_near: f64, z_far: f64) -> Self
Trait Implementations
sourceimpl AddAssign<Mat4d> for Mat4d
impl AddAssign<Mat4d> for Mat4d
sourcefn add_assign(&mut self, rhs: Mat4d)
fn add_assign(&mut self, rhs: Mat4d)
Performs the +=
operation. Read more
sourceimpl AddAssign<f64> for Mat4d
impl AddAssign<f64> for Mat4d
sourcefn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the +=
operation. Read more
sourceimpl DivAssign<f64> for Mat4d
impl DivAssign<f64> for Mat4d
sourcefn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the /=
operation. Read more
sourceimpl MulAssign<Mat4d> for Mat4d
impl MulAssign<Mat4d> for Mat4d
sourcefn mul_assign(&mut self, rhs: Mat4d)
fn mul_assign(&mut self, rhs: Mat4d)
Performs the *=
operation. Read more
sourceimpl MulAssign<f64> for Mat4d
impl MulAssign<f64> for Mat4d
sourcefn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the *=
operation. Read more
sourceimpl SubAssign<Mat4d> for Mat4d
impl SubAssign<Mat4d> for Mat4d
sourcefn sub_assign(&mut self, rhs: Mat4d)
fn sub_assign(&mut self, rhs: Mat4d)
Performs the -=
operation. Read more
sourceimpl SubAssign<f64> for Mat4d
impl SubAssign<f64> for Mat4d
sourcefn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
Performs the -=
operation. Read more
impl Copy for Mat4d
impl StructuralPartialEq for Mat4d
Auto Trait Implementations
impl RefUnwindSafe for Mat4d
impl Send for Mat4d
impl Sync for Mat4d
impl Unpin for Mat4d
impl UnwindSafe for Mat4d
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more