pub struct Matrix4 {}
Expand description
4x4 matrix
Fields§
§xx: f64
§xy: f64
§xz: f64
§xw: f64
§yx: f64
§yy: f64
§yz: f64
§yw: f64
§zx: f64
§zy: f64
§zz: f64
§zw: f64
§wx: f64
§wy: f64
§wz: f64
§ww: f64
Implementations§
Trait Implementations§
Source§impl AddAssign for Matrix4
impl AddAssign for Matrix4
Source§fn add_assign(&mut self, rhs: Matrix4)
fn add_assign(&mut self, rhs: Matrix4)
Performs the
+=
operation. Read moreSource§impl Algebra<Matrix4> for Matrix4
impl Algebra<Matrix4> for Matrix4
Source§fn determinant(&self) -> f64
fn determinant(&self) -> f64
Get the determinant of the matrix
Source§fn set_inverse(&mut self) -> &mut Self
fn set_inverse(&mut self) -> &mut Self
Set inverse matrix
Source§fn set_transposed(&mut self) -> &mut Self
fn set_transposed(&mut self) -> &mut Self
Set transposed matrix
Source§fn set_adjugate(&mut self) -> &mut Self
fn set_adjugate(&mut self) -> &mut Self
Set adjugate matrix
Source§fn transposed(&self) -> Self
fn transposed(&self) -> Self
Get the transposed matrix
Source§impl DivAssign<f64> for Matrix4
impl DivAssign<f64> for Matrix4
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl Initializer for Matrix4
impl Initializer for Matrix4
Source§impl Interpolation for Matrix4
impl Interpolation for Matrix4
Source§fn set_herp(
&mut self,
other: &Self,
other1: &Self,
other2: &Self,
s: f64,
) -> &mut Self
fn set_herp( &mut self, other: &Self, other1: &Self, other2: &Self, s: f64, ) -> &mut Self
Set the Hermite’s interpolation
Source§fn set_berp(
&mut self,
other: &Self,
other1: &Self,
other2: &Self,
s: f64,
) -> &mut Self
fn set_berp( &mut self, other: &Self, other1: &Self, other2: &Self, s: f64, ) -> &mut Self
Set the Bezier’s interpolation
Source§impl Metric for Matrix4
impl Metric for Matrix4
Source§fn magnitude2(&self) -> f64
fn magnitude2(&self) -> f64
Squared magnitude of an object
Source§fn set_normalized(&mut self) -> &mut Self
fn set_normalized(&mut self) -> &mut Self
Normalizes the vector, ie. sets magnitude to 1 without changing direction
Source§fn normalized(&self) -> Self
fn normalized(&self) -> Self
Get the normalized vector, ie. vector with same direction and magnitude 1
Source§impl MulAssign<Matrix4> for Vector3
impl MulAssign<Matrix4> for Vector3
Source§fn mul_assign(&mut self, rhs: Matrix4)
fn mul_assign(&mut self, rhs: Matrix4)
Performs the
*=
operation. Read moreSource§impl MulAssign<Matrix4> for Vector4
impl MulAssign<Matrix4> for Vector4
Source§fn mul_assign(&mut self, rhs: Matrix4)
fn mul_assign(&mut self, rhs: Matrix4)
Performs the
*=
operation. Read moreSource§impl MulAssign<f64> for Matrix4
impl MulAssign<f64> for Matrix4
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl MulAssign for Matrix4
impl MulAssign for Matrix4
Source§fn mul_assign(&mut self, rhs: Matrix4)
fn mul_assign(&mut self, rhs: Matrix4)
Performs the
*=
operation. Read moreSource§impl Similarity<Matrix3, Vector3> for Matrix4
impl Similarity<Matrix3, Vector3> for Matrix4
Source§impl SubAssign for Matrix4
impl SubAssign for Matrix4
Source§fn sub_assign(&mut self, rhs: Matrix4)
fn sub_assign(&mut self, rhs: Matrix4)
Performs the
-=
operation. Read moreSource§impl Translation<Vector3> for Matrix4
impl Translation<Vector3> for Matrix4
Source§fn set_translation(&mut self, vector: &Vector3) -> &mut Self
fn set_translation(&mut self, vector: &Vector3) -> &mut Self
Set a translation matrix from translation vector
Source§fn from_translation(vector: &T) -> Self
fn from_translation(vector: &T) -> Self
Get a translation matrix from translation vector
impl Copy for Matrix4
Auto Trait Implementations§
impl Freeze for Matrix4
impl RefUnwindSafe for Matrix4
impl Send for Matrix4
impl Sync for Matrix4
impl Unpin for Matrix4
impl UnwindSafe for Matrix4
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