pub struct FArray2<F: Float, const D: usize, const D2: usize> { /* private fields */ }Expand description
Trait Implementations§
Source§impl<D: Deref<Target = [f32; 4]>> AddAssign<D> for &mut FArray2<f32, 2, 4>
impl<D: Deref<Target = [f32; 4]>> AddAssign<D> for &mut FArray2<f32, 2, 4>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f32; 9]>> AddAssign<D> for &mut FArray2<f32, 3, 9>
impl<D: Deref<Target = [f32; 9]>> AddAssign<D> for &mut FArray2<f32, 3, 9>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f32; 16]>> AddAssign<D> for &mut FArray2<f32, 4, 16>
impl<D: Deref<Target = [f32; 16]>> AddAssign<D> for &mut FArray2<f32, 4, 16>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f64; 4]>> AddAssign<D> for &mut FArray2<f64, 2, 4>
impl<D: Deref<Target = [f64; 4]>> AddAssign<D> for &mut FArray2<f64, 2, 4>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f64; 9]>> AddAssign<D> for &mut FArray2<f64, 3, 9>
impl<D: Deref<Target = [f64; 9]>> AddAssign<D> for &mut FArray2<f64, 3, 9>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f64; 16]>> AddAssign<D> for &mut FArray2<f64, 4, 16>
impl<D: Deref<Target = [f64; 16]>> AddAssign<D> for &mut FArray2<f64, 4, 16>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f32; 4]>> AddAssign<D> for FArray2<f32, 2, 4>
impl<D: Deref<Target = [f32; 4]>> AddAssign<D> for FArray2<f32, 2, 4>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f32; 9]>> AddAssign<D> for FArray2<f32, 3, 9>
impl<D: Deref<Target = [f32; 9]>> AddAssign<D> for FArray2<f32, 3, 9>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f32; 16]>> AddAssign<D> for FArray2<f32, 4, 16>
impl<D: Deref<Target = [f32; 16]>> AddAssign<D> for FArray2<f32, 4, 16>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f64; 4]>> AddAssign<D> for FArray2<f64, 2, 4>
impl<D: Deref<Target = [f64; 4]>> AddAssign<D> for FArray2<f64, 2, 4>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f64; 9]>> AddAssign<D> for FArray2<f64, 3, 9>
impl<D: Deref<Target = [f64; 9]>> AddAssign<D> for FArray2<f64, 3, 9>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreSource§impl<D: Deref<Target = [f64; 16]>> AddAssign<D> for FArray2<f64, 4, 16>
impl<D: Deref<Target = [f64; 16]>> AddAssign<D> for FArray2<f64, 4, 16>
Source§fn add_assign(&mut self, other: D)
fn add_assign(&mut self, other: D)
Performs the
+= operation. Read moreimpl<F: Copy + Float, const D: usize, const D2: usize> Copy for FArray2<F, D, D2>
Source§impl<'de> Deserialize<'de> for FArray2<f32, 2, 4>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FArray2<f32, 2, 4>
Available on crate feature
serde only.Source§fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for FArray2<f32, 3, 9>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FArray2<f32, 3, 9>
Available on crate feature
serde only.Source§fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for FArray2<f32, 4, 16>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FArray2<f32, 4, 16>
Available on crate feature
serde only.Source§fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for FArray2<f64, 2, 4>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FArray2<f64, 2, 4>
Available on crate feature
serde only.Source§fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for FArray2<f64, 3, 9>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FArray2<f64, 3, 9>
Available on crate feature
serde only.Source§fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for FArray2<f64, 4, 16>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FArray2<f64, 4, 16>
Available on crate feature
serde only.Source§fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
fn deserialize<DE>(deserializer: DE) -> Result<Self, DE::Error>where
DE: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> DivAssign<&'a f32> for FArray2<f32, 2, 4>
impl<'a> DivAssign<&'a f32> for FArray2<f32, 2, 4>
Source§fn div_assign(&mut self, other: &'a f32)
fn div_assign(&mut self, other: &'a f32)
Performs the
/= operation. Read moreSource§impl<'a> DivAssign<&'a f32> for FArray2<f32, 3, 9>
impl<'a> DivAssign<&'a f32> for FArray2<f32, 3, 9>
Source§fn div_assign(&mut self, other: &'a f32)
fn div_assign(&mut self, other: &'a f32)
Performs the
/= operation. Read moreSource§impl<'a> DivAssign<&'a f32> for FArray2<f32, 4, 16>
impl<'a> DivAssign<&'a f32> for FArray2<f32, 4, 16>
Source§fn div_assign(&mut self, other: &'a f32)
fn div_assign(&mut self, other: &'a f32)
Performs the
/= operation. Read moreSource§impl<'a> DivAssign<&'a f64> for FArray2<f64, 2, 4>
impl<'a> DivAssign<&'a f64> for FArray2<f64, 2, 4>
Source§fn div_assign(&mut self, other: &'a f64)
fn div_assign(&mut self, other: &'a f64)
Performs the
/= operation. Read moreSource§impl<'a> DivAssign<&'a f64> for FArray2<f64, 3, 9>
impl<'a> DivAssign<&'a f64> for FArray2<f64, 3, 9>
Source§fn div_assign(&mut self, other: &'a f64)
fn div_assign(&mut self, other: &'a f64)
Performs the
/= operation. Read moreSource§impl<'a> DivAssign<&'a f64> for FArray2<f64, 4, 16>
impl<'a> DivAssign<&'a f64> for FArray2<f64, 4, 16>
Source§fn div_assign(&mut self, other: &'a f64)
fn div_assign(&mut self, other: &'a f64)
Performs the
/= operation. Read moreSource§impl DivAssign<f32> for FArray2<f32, 2, 4>
impl DivAssign<f32> for FArray2<f32, 2, 4>
Source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/= operation. Read moreSource§impl DivAssign<f32> for FArray2<f32, 3, 9>
impl DivAssign<f32> for FArray2<f32, 3, 9>
Source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/= operation. Read moreSource§impl DivAssign<f32> for FArray2<f32, 4, 16>
impl DivAssign<f32> for FArray2<f32, 4, 16>
Source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/= operation. Read moreSource§impl DivAssign<f64> for FArray2<f64, 2, 4>
impl DivAssign<f64> for FArray2<f64, 2, 4>
Source§fn div_assign(&mut self, other: f64)
fn div_assign(&mut self, other: f64)
Performs the
/= operation. Read moreSource§impl DivAssign<f64> for FArray2<f64, 3, 9>
impl DivAssign<f64> for FArray2<f64, 3, 9>
Source§fn div_assign(&mut self, other: f64)
fn div_assign(&mut self, other: f64)
Performs the
/= operation. Read moreSource§impl DivAssign<f64> for FArray2<f64, 4, 16>
impl DivAssign<f64> for FArray2<f64, 4, 16>
Source§fn div_assign(&mut self, other: f64)
fn div_assign(&mut self, other: f64)
Performs the
/= operation. Read moreSource§impl MulAssign for FArray2<f32, 2, 4>
impl MulAssign for FArray2<f32, 2, 4>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl MulAssign for FArray2<f32, 3, 9>
impl MulAssign for FArray2<f32, 3, 9>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl MulAssign for FArray2<f32, 4, 16>
impl MulAssign for FArray2<f32, 4, 16>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl MulAssign for FArray2<f64, 2, 4>
impl MulAssign for FArray2<f64, 2, 4>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl MulAssign for FArray2<f64, 3, 9>
impl MulAssign for FArray2<f64, 3, 9>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl MulAssign for FArray2<f64, 4, 16>
impl MulAssign for FArray2<f64, 4, 16>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl<'a> MulAssign<&'a f32> for FArray2<f32, 2, 4>
impl<'a> MulAssign<&'a f32> for FArray2<f32, 2, 4>
Source§fn mul_assign(&mut self, other: &'a f32)
fn mul_assign(&mut self, other: &'a f32)
Performs the
*= operation. Read moreSource§impl<'a> MulAssign<&'a f32> for FArray2<f32, 3, 9>
impl<'a> MulAssign<&'a f32> for FArray2<f32, 3, 9>
Source§fn mul_assign(&mut self, other: &'a f32)
fn mul_assign(&mut self, other: &'a f32)
Performs the
*= operation. Read moreSource§impl<'a> MulAssign<&'a f32> for FArray2<f32, 4, 16>
impl<'a> MulAssign<&'a f32> for FArray2<f32, 4, 16>
Source§fn mul_assign(&mut self, other: &'a f32)
fn mul_assign(&mut self, other: &'a f32)
Performs the
*= operation. Read moreSource§impl<'a> MulAssign<&'a f64> for FArray2<f64, 2, 4>
impl<'a> MulAssign<&'a f64> for FArray2<f64, 2, 4>
Source§fn mul_assign(&mut self, other: &'a f64)
fn mul_assign(&mut self, other: &'a f64)
Performs the
*= operation. Read moreSource§impl<'a> MulAssign<&'a f64> for FArray2<f64, 3, 9>
impl<'a> MulAssign<&'a f64> for FArray2<f64, 3, 9>
Source§fn mul_assign(&mut self, other: &'a f64)
fn mul_assign(&mut self, other: &'a f64)
Performs the
*= operation. Read moreSource§impl<'a> MulAssign<&'a f64> for FArray2<f64, 4, 16>
impl<'a> MulAssign<&'a f64> for FArray2<f64, 4, 16>
Source§fn mul_assign(&mut self, other: &'a f64)
fn mul_assign(&mut self, other: &'a f64)
Performs the
*= operation. Read moreSource§impl MulAssign<f32> for FArray2<f32, 2, 4>
impl MulAssign<f32> for FArray2<f32, 2, 4>
Source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*= operation. Read moreSource§impl MulAssign<f32> for FArray2<f32, 3, 9>
impl MulAssign<f32> for FArray2<f32, 3, 9>
Source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*= operation. Read moreSource§impl MulAssign<f32> for FArray2<f32, 4, 16>
impl MulAssign<f32> for FArray2<f32, 4, 16>
Source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*= operation. Read moreSource§impl MulAssign<f64> for FArray2<f64, 2, 4>
impl MulAssign<f64> for FArray2<f64, 2, 4>
Source§fn mul_assign(&mut self, other: f64)
fn mul_assign(&mut self, other: f64)
Performs the
*= operation. Read moreSource§impl MulAssign<f64> for FArray2<f64, 3, 9>
impl MulAssign<f64> for FArray2<f64, 3, 9>
Source§fn mul_assign(&mut self, other: f64)
fn mul_assign(&mut self, other: f64)
Performs the
*= operation. Read moreSource§impl MulAssign<f64> for FArray2<f64, 4, 16>
impl MulAssign<f64> for FArray2<f64, 4, 16>
Source§fn mul_assign(&mut self, other: f64)
fn mul_assign(&mut self, other: f64)
Performs the
*= operation. Read moreSource§impl<F: PartialEq + Float, const D: usize, const D2: usize> PartialEq for FArray2<F, D, D2>
impl<F: PartialEq + Float, const D: usize, const D2: usize> PartialEq for FArray2<F, D, D2>
Source§impl SqMatrix<f32, 2, 4> for FArray2<f32, 2, 4>
impl SqMatrix<f32, 2, 4> for FArray2<f32, 2, 4>
Source§fn determinant(&self) -> f32
fn determinant(&self) -> f32
Calculate the determinant of the matrix
Source§fn checked_inverse(&self) -> (Self, bool)
fn checked_inverse(&self) -> (Self, bool)
Create an inverse matrix, and in indication the inverse could not be created Read more
Source§fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
Apply the matrix to a vector to transform it Read more
Source§fn opt_inverse(&self) -> Option<Self>
fn opt_inverse(&self) -> Option<Self>
Create an inverse matrix Read more
Source§fn rotation2d(angle: F) -> Self
fn rotation2d(angle: F) -> Self
Create a 2D rotation matrix by an angle in radians, anticlockwise about the origin
Source§impl SqMatrix<f32, 3, 9> for FArray2<f32, 3, 9>
impl SqMatrix<f32, 3, 9> for FArray2<f32, 3, 9>
Source§fn determinant(&self) -> f32
fn determinant(&self) -> f32
Calculate the determinant of the matrix
Source§fn checked_inverse(&self) -> (Self, bool)
fn checked_inverse(&self) -> (Self, bool)
Create an inverse matrix, and in indication the inverse could not be created Read more
Source§fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
Apply the matrix to a vector to transform it Read more
Source§fn opt_inverse(&self) -> Option<Self>
fn opt_inverse(&self) -> Option<Self>
Create an inverse matrix Read more
Source§impl SqMatrix<f32, 4, 16> for FArray2<f32, 4, 16>
impl SqMatrix<f32, 4, 16> for FArray2<f32, 4, 16>
Source§fn determinant(&self) -> f32
fn determinant(&self) -> f32
Calculate the determinant of the matrix
Source§fn checked_inverse(&self) -> (Self, bool)
fn checked_inverse(&self) -> (Self, bool)
Create an inverse matrix, and in indication the inverse could not be created Read more
Source§fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
Apply the matrix to a vector to transform it Read more
Source§fn opt_inverse(&self) -> Option<Self>
fn opt_inverse(&self) -> Option<Self>
Create an inverse matrix Read more
Source§impl SqMatrix<f64, 2, 4> for FArray2<f64, 2, 4>
impl SqMatrix<f64, 2, 4> for FArray2<f64, 2, 4>
Source§fn determinant(&self) -> f64
fn determinant(&self) -> f64
Calculate the determinant of the matrix
Source§fn checked_inverse(&self) -> (Self, bool)
fn checked_inverse(&self) -> (Self, bool)
Create an inverse matrix, and in indication the inverse could not be created Read more
Source§fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
Apply the matrix to a vector to transform it Read more
Source§fn opt_inverse(&self) -> Option<Self>
fn opt_inverse(&self) -> Option<Self>
Create an inverse matrix Read more
Source§fn rotation2d(angle: F) -> Self
fn rotation2d(angle: F) -> Self
Create a 2D rotation matrix by an angle in radians, anticlockwise about the origin
Source§impl SqMatrix<f64, 3, 9> for FArray2<f64, 3, 9>
impl SqMatrix<f64, 3, 9> for FArray2<f64, 3, 9>
Source§fn determinant(&self) -> f64
fn determinant(&self) -> f64
Calculate the determinant of the matrix
Source§fn checked_inverse(&self) -> (Self, bool)
fn checked_inverse(&self) -> (Self, bool)
Create an inverse matrix, and in indication the inverse could not be created Read more
Source§fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
Apply the matrix to a vector to transform it Read more
Source§fn opt_inverse(&self) -> Option<Self>
fn opt_inverse(&self) -> Option<Self>
Create an inverse matrix Read more
Source§impl SqMatrix<f64, 4, 16> for FArray2<f64, 4, 16>
impl SqMatrix<f64, 4, 16> for FArray2<f64, 4, 16>
Source§fn determinant(&self) -> f64
fn determinant(&self) -> f64
Calculate the determinant of the matrix
Source§fn checked_inverse(&self) -> (Self, bool)
fn checked_inverse(&self) -> (Self, bool)
Create an inverse matrix, and in indication the inverse could not be created Read more
Source§fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
fn mul_vec_arr(&self, v: &[F; D]) -> [F; D]
Apply the matrix to a vector to transform it Read more
Source§fn opt_inverse(&self) -> Option<Self>
fn opt_inverse(&self) -> Option<Self>
Create an inverse matrix Read more
impl<F: Float, const D: usize, const D2: usize> StructuralPartialEq for FArray2<F, D, D2>
Source§impl<D: Deref<Target = [f32; 4]>> SubAssign<D> for &mut FArray2<f32, 2, 4>
impl<D: Deref<Target = [f32; 4]>> SubAssign<D> for &mut FArray2<f32, 2, 4>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f32; 9]>> SubAssign<D> for &mut FArray2<f32, 3, 9>
impl<D: Deref<Target = [f32; 9]>> SubAssign<D> for &mut FArray2<f32, 3, 9>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f32; 16]>> SubAssign<D> for &mut FArray2<f32, 4, 16>
impl<D: Deref<Target = [f32; 16]>> SubAssign<D> for &mut FArray2<f32, 4, 16>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f64; 4]>> SubAssign<D> for &mut FArray2<f64, 2, 4>
impl<D: Deref<Target = [f64; 4]>> SubAssign<D> for &mut FArray2<f64, 2, 4>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f64; 9]>> SubAssign<D> for &mut FArray2<f64, 3, 9>
impl<D: Deref<Target = [f64; 9]>> SubAssign<D> for &mut FArray2<f64, 3, 9>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f64; 16]>> SubAssign<D> for &mut FArray2<f64, 4, 16>
impl<D: Deref<Target = [f64; 16]>> SubAssign<D> for &mut FArray2<f64, 4, 16>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f32; 4]>> SubAssign<D> for FArray2<f32, 2, 4>
impl<D: Deref<Target = [f32; 4]>> SubAssign<D> for FArray2<f32, 2, 4>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f32; 9]>> SubAssign<D> for FArray2<f32, 3, 9>
impl<D: Deref<Target = [f32; 9]>> SubAssign<D> for FArray2<f32, 3, 9>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f32; 16]>> SubAssign<D> for FArray2<f32, 4, 16>
impl<D: Deref<Target = [f32; 16]>> SubAssign<D> for FArray2<f32, 4, 16>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f64; 4]>> SubAssign<D> for FArray2<f64, 2, 4>
impl<D: Deref<Target = [f64; 4]>> SubAssign<D> for FArray2<f64, 2, 4>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f64; 9]>> SubAssign<D> for FArray2<f64, 3, 9>
impl<D: Deref<Target = [f64; 9]>> SubAssign<D> for FArray2<f64, 3, 9>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<D: Deref<Target = [f64; 16]>> SubAssign<D> for FArray2<f64, 4, 16>
impl<D: Deref<Target = [f64; 16]>> SubAssign<D> for FArray2<f64, 4, 16>
Source§fn sub_assign(&mut self, other: D)
fn sub_assign(&mut self, other: D)
Performs the
-= operation. Read moreSource§impl<F> Transform<F> for FArray2<F, 4, 16>
impl<F> Transform<F> for FArray2<F, 4, 16>
Source§const UNIFORM_SCALING: bool = false
const UNIFORM_SCALING: bool = false
Set to true if the transformation can only perform uniform scaling
Source§type Vec3 = FArray<F, 3>
type Vec3 = FArray<F, 3>
Type of vector comprehended as the translation/scaling for this transform
Source§type Vec4 = FArray<F, 4>
type Vec4 = FArray<F, 4>
Type of vector comprehended as the translation/scaling for this transform
Source§fn of_trs<A: AsRef<[F; 3]>>(t: A, r: Self::Quat, s: A) -> Option<Self>
fn of_trs<A: AsRef<[F; 3]>>(t: A, r: Self::Quat, s: A) -> Option<Self>
Create a transformation that is a translation, rotation and scaling
Source§fn of_trsu<A: AsRef<[F; 3]>>(t: A, r: Self::Quat, s: F) -> Self
fn of_trsu<A: AsRef<[F; 3]>>(t: A, r: Self::Quat, s: F) -> Self
Create a transformation that is a translation, rotation and uniform scaling
Source§fn is_uniform_scale(&self) -> bool
fn is_uniform_scale(&self) -> bool
Returns true if the scaling is uniform in each axis
Source§fn uniform_scale(&self) -> Option<F>
fn uniform_scale(&self) -> Option<F>
Get the scale of the transform in each of the axes, if possible
Source§fn translation(&self) -> Self::Vec3
fn translation(&self) -> Self::Vec3
Get a translation by a vector
Source§fn set_identity(&mut self)
fn set_identity(&mut self)
Set to an identity transformation
Source§fn set_scale<A: AsRef<[F; 3]>>(&mut self, _scale: A) -> bool
fn set_scale<A: AsRef<[F; 3]>>(&mut self, _scale: A) -> bool
Set the scale of the transformation Read more
Source§fn set_uniform_scale(&mut self, scale: F)
fn set_uniform_scale(&mut self, scale: F)
Set the scale of the transformation
Source§fn set_translation<A: AsRef<[F; 3]>>(&mut self, translation: A)
fn set_translation<A: AsRef<[F; 3]>>(&mut self, translation: A)
Set the translation of the transformation
Source§fn set_rotation(&mut self, rotation: Self::Quat)
fn set_rotation(&mut self, rotation: Self::Quat)
Set the rotation of a transformation
Source§fn scale_uniform_by(&mut self, scale: F)
fn scale_uniform_by(&mut self, scale: F)
Pre-apply a uniform scaling
Source§fn scale_by<A: AsRef<[F; 3]>>(&mut self, scale: A) -> bool
fn scale_by<A: AsRef<[F; 3]>>(&mut self, scale: A) -> bool
Pre-apply a nonuniform scaling Read more
Source§fn translate_by<A: AsRef<[F; 3]>>(&mut self, translation: A, scale: F)
fn translate_by<A: AsRef<[F; 3]>>(&mut self, translation: A, scale: F)
Pre-apply a scaled translation to the transformation
Source§fn transform_by<T: Transform<F, Quat = Self::Quat>>(
&mut self,
transformer: &T,
) -> bool
fn transform_by<T: Transform<F, Quat = Self::Quat>>( &mut self, transformer: &T, ) -> bool
Transform this transformation by another UNIFORM scale transformation;
if is not uniform scaling then return false
Source§fn inverse_transform(&self) -> Option<Self>
fn inverse_transform(&self) -> Option<Self>
Get the inverse transformation Read more
Source§fn apply3_arr(&self, other: &[F; 3]) -> [F; 3]
fn apply3_arr(&self, other: &[F; 3]) -> [F; 3]
Apply the transformation to a [F; 4]
Source§fn apply4_arr(&self, other: &[F; 4]) -> [F; 4]
fn apply4_arr(&self, other: &[F; 4]) -> [F; 4]
Apply the transformation to a [F; 4]
Source§fn set_inverse(&mut self) -> bool
fn set_inverse(&mut self) -> bool
Invert the transformation Read more
Auto Trait Implementations§
impl<F, const D: usize, const D2: usize> Freeze for FArray2<F, D, D2>where
F: Freeze,
impl<F, const D: usize, const D2: usize> RefUnwindSafe for FArray2<F, D, D2>where
F: RefUnwindSafe,
impl<F, const D: usize, const D2: usize> Send for FArray2<F, D, D2>where
F: Send,
impl<F, const D: usize, const D2: usize> Sync for FArray2<F, D, D2>where
F: Sync,
impl<F, const D: usize, const D2: usize> Unpin for FArray2<F, D, D2>where
F: Unpin,
impl<F, const D: usize, const D2: usize> UnsafeUnpin for FArray2<F, D, D2>where
F: UnsafeUnpin,
impl<F, const D: usize, const D2: usize> UnwindSafe for FArray2<F, D, D2>where
F: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<F, const R: usize, const C: usize, const RC: usize, M> Matrix<F, R, C, RC> for Mwhere
F: Float,
M: ArrayBasic + ArrayRef<F, RC> + ArrayIndex<F> + ArrayConvert<F, RC> + ArrayAddSubNeg<F, RC> + ArrayScale<F>,
impl<F, const R: usize, const C: usize, const RC: usize, M> Matrix<F, R, C, RC> for Mwhere
F: Float,
M: ArrayBasic + ArrayRef<F, RC> + ArrayIndex<F> + ArrayConvert<F, RC> + ArrayAddSubNeg<F, RC> + ArrayScale<F>,
impl<F, M> SqMatrix2<F> for M
Source§impl<F, M> SqMatrix3<F> for M
impl<F, M> SqMatrix3<F> for M
Source§fn of_quaternion<Q: Quaternion<F>>(q: Q) -> Self
fn of_quaternion<Q: Quaternion<F>>(q: Q) -> Self
Create a 3-by-3 matrix of the rotation of a quaternion
Source§impl<F, M> SqMatrix4<F> for M
impl<F, M> SqMatrix4<F> for M
Source§fn perspective(fov: F, aspect: F, near: F, far: F) -> Self
fn perspective(fov: F, aspect: F, near: F, far: F) -> Self
Generate a perspective matrix
Source§fn look_at(eye: &[F; 3], center: &[F; 3], up: &[F; 3]) -> Self
fn look_at(eye: &[F; 3], center: &[F; 3], up: &[F; 3]) -> Self
Generate a matrix that represents a ‘look at a vector’
Source§fn translate3(&mut self, by: &[F; 3])
fn translate3(&mut self, by: &[F; 3])
Translate the matrix by a Vec3
Source§fn translate4(&mut self, by: &[F; 4])
fn translate4(&mut self, by: &[F; 4])
Translate the matrix by a Vec4