pub struct Mat4f { /* private fields */ }
Implementations
sourceimpl Mat4f
impl Mat4f
pub fn col(&self, index: usize) -> Vec4f
pub fn row(&self, index: usize) -> Vec4f
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) -> f32
pub fn inverse(&self) -> Self
pub fn try_inverse(&self) -> Option<Self>
sourceimpl Mat4f
impl Mat4f
pub fn from_array(m: [f32; 16]) -> Self
pub fn from_array_2d(m: [[f32; 4]; 4]) -> Self
pub fn from_diagonal(diagonal: Vec4f) -> Self
sourceimpl Mat4f
impl Mat4f
pub fn translation(translate: Vec3f) -> Self
pub fn rotation_x(angle: f32) -> Self
pub fn rotation_y(angle: f32) -> Self
pub fn rotation_z(angle: f32) -> Self
pub fn rotation_axis(axis: Vec3f, angle: f32) -> Self
pub fn scale(scale: Vec3f) -> Self
pub fn look_at(eye: Vec3f, target: Vec3f, up: Vec3f) -> Self
pub fn perspective(fovy: f32, aspect: f32, z_near: f32, z_far: f32) -> Self
Trait Implementations
sourceimpl AddAssign<Mat4f> for Mat4f
impl AddAssign<Mat4f> for Mat4f
sourcefn add_assign(&mut self, rhs: Mat4f)
fn add_assign(&mut self, rhs: Mat4f)
Performs the +=
operation. Read more
sourceimpl AddAssign<f32> for Mat4f
impl AddAssign<f32> for Mat4f
sourcefn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the +=
operation. Read more
sourceimpl DivAssign<f32> for Mat4f
impl DivAssign<f32> for Mat4f
sourcefn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the /=
operation. Read more
sourceimpl MulAssign<Mat4f> for Mat4f
impl MulAssign<Mat4f> for Mat4f
sourcefn mul_assign(&mut self, rhs: Mat4f)
fn mul_assign(&mut self, rhs: Mat4f)
Performs the *=
operation. Read more
sourceimpl MulAssign<f32> for Mat4f
impl MulAssign<f32> for Mat4f
sourcefn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the *=
operation. Read more
sourceimpl SubAssign<Mat4f> for Mat4f
impl SubAssign<Mat4f> for Mat4f
sourcefn sub_assign(&mut self, rhs: Mat4f)
fn sub_assign(&mut self, rhs: Mat4f)
Performs the -=
operation. Read more
sourceimpl SubAssign<f32> for Mat4f
impl SubAssign<f32> for Mat4f
sourcefn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the -=
operation. Read more
impl Copy for Mat4f
impl StructuralPartialEq for Mat4f
Auto Trait Implementations
impl RefUnwindSafe for Mat4f
impl Send for Mat4f
impl Sync for Mat4f
impl Unpin for Mat4f
impl UnwindSafe for Mat4f
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