#[repr(C)]pub struct Matrix {}Fields§
§m0: f32§m4: f32§m8: f32§m12: f32§m1: f32§m5: f32§m9: f32§m13: f32§m2: f32§m6: f32§m10: f32§m14: f32§m3: f32§m7: f32§m11: f32§m15: f32Implementations§
Source§impl Matrix
impl Matrix
Sourcepub fn determinant(self) -> f32
pub fn determinant(self) -> f32
Matrix determinant. (raymath MatrixDeterminant)
Sourcepub fn mul_value(self, value: f32) -> Self
pub fn mul_value(self, value: f32) -> Self
Multiply matrix by scalar. (raymath MatrixMultiplyValue)
Sourcepub fn rotate(axis: Vector3, angle: f32) -> Self
pub fn rotate(axis: Vector3, angle: f32) -> Self
Rotate matrix by axis and angle (radians). (raymath MatrixRotate)
Sourcepub fn rotate_xyz(angle: Vector3) -> Self
pub fn rotate_xyz(angle: Vector3) -> Self
Rotate around XYZ axes (radians, intrinsic order). (raymath MatrixRotateXYZ)
Sourcepub fn rotate_zyx(angle: Vector3) -> Self
pub fn rotate_zyx(angle: Vector3) -> Self
Rotate around ZYX axes (radians, intrinsic order). (raymath MatrixRotateZYX)
Sourcepub fn frustum(
left: f64,
right: f64,
bottom: f64,
top: f64,
near: f64,
far: f64,
) -> Self
pub fn frustum( left: f64, right: f64, bottom: f64, top: f64, near: f64, far: f64, ) -> Self
Frustum projection matrix. (raymath MatrixFrustum)
Sourcepub fn perspective(fov_y: f64, aspect: f64, near: f64, far: f64) -> Self
pub fn perspective(fov_y: f64, aspect: f64, near: f64, far: f64) -> Self
Perspective projection matrix. (raymath MatrixPerspective)
Sourcepub fn ortho(
left: f64,
right: f64,
bottom: f64,
top: f64,
near: f64,
far: f64,
) -> Self
pub fn ortho( left: f64, right: f64, bottom: f64, top: f64, near: f64, far: f64, ) -> Self
Orthographic projection matrix. (raymath MatrixOrtho)
Sourcepub fn look_at(eye: Vector3, target: Vector3, up: Vector3) -> Self
pub fn look_at(eye: Vector3, target: Vector3, up: Vector3) -> Self
Look-at view matrix. (raymath MatrixLookAt)
Sourcepub fn to_float_array(self) -> float16
pub fn to_float_array(self) -> float16
Convert matrix to float array. (raymath MatrixToFloatV)
Sourcepub fn compose(
translation: Vector3,
rotation: Quaternion,
scale: Vector3,
) -> Self
pub fn compose( translation: Vector3, rotation: Quaternion, scale: Vector3, ) -> Self
Compose a matrix from translation, rotation quaternion, and scale. (raymath MatrixCompose)
Trait Implementations§
Source§impl AddAssign for Matrix
impl AddAssign for Matrix
Source§fn add_assign(&mut self, rhs: Matrix)
fn add_assign(&mut self, rhs: Matrix)
Performs the
+= operation. Read moreimpl Copy for Matrix
Source§impl MulAssign for Matrix
impl MulAssign for Matrix
Source§fn mul_assign(&mut self, rhs: Matrix)
fn mul_assign(&mut self, rhs: Matrix)
Performs the
*= operation. Read moreimpl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Freeze for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnsafeUnpin for Matrix
impl UnwindSafe for Matrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more