pub struct FArray2<F: Float, const D: usize, const D2: usize> { /* private fields */ }
Expand description
Trait Implementations§
source§impl<F: Float, const D: usize, const D2: usize> AddAssign<F> for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> AddAssign<F> for FArray2<F, D, D2>
source§fn add_assign(&mut self, other: F)
fn add_assign(&mut self, other: F)
Performs the
+=
operation. Read moresource§impl<F: Float, const D: usize, const D2: usize> AddAssign<FArray2<F, D, D2>> for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> AddAssign<FArray2<F, D, D2>> for FArray2<F, D, D2>
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl<'de, F: Float + Deserialize<'de>, const D: usize, const D2: usize> Deserialize<'de> for FArray2<F, D, D2>
impl<'de, F: Float + Deserialize<'de>, const D: usize, const D2: usize> Deserialize<'de> for FArray2<F, D, D2>
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<F: Float, const D: usize, const D2: usize> DivAssign<F> for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> DivAssign<F> for FArray2<F, D, D2>
source§fn div_assign(&mut self, other: F)
fn div_assign(&mut self, other: F)
Performs the
/=
operation. Read moresource§impl<F: Float, const D: usize, const D2: usize> MulAssign<F> for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> MulAssign<F> for FArray2<F, D, D2>
source§fn mul_assign(&mut self, other: F)
fn mul_assign(&mut self, other: F)
Performs the
*=
operation. Read moresource§impl<F: Float, const D: usize, const D2: usize> MulAssign<FArray2<F, D, D2>> for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> MulAssign<FArray2<F, D, D2>> for FArray2<F, D, D2>
source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*=
operation. Read moresource§impl<F: Float> SqMatrix<FArray<F, 2>, F, 2, 4> for FArray2<F, 2, 4>
impl<F: Float> SqMatrix<FArray<F, 2>, F, 2, 4> for FArray2<F, 2, 4>
source§fn into_array(self) -> [F; 4]
fn into_array(self) -> [F; 4]
Create a vector from an array of Float
source§fn determinant(&self) -> F
fn determinant(&self) -> F
Calculate the determinant of the matrix
source§impl<F: Float> SqMatrix<FArray<F, 3>, F, 3, 9> for FArray2<F, 3, 9>
impl<F: Float> SqMatrix<FArray<F, 3>, F, 3, 9> for FArray2<F, 3, 9>
source§fn into_array(self) -> [F; 9]
fn into_array(self) -> [F; 9]
Create a vector from an array of Float
source§fn determinant(&self) -> F
fn determinant(&self) -> F
Calculate the determinant of the matrix
source§impl<F: Float> SqMatrix<FArray<F, 4>, F, 4, 16> for FArray2<F, 4, 16>
impl<F: Float> SqMatrix<FArray<F, 4>, F, 4, 16> for FArray2<F, 4, 16>
source§fn into_array(self) -> [F; 16]
fn into_array(self) -> [F; 16]
Create a vector from an array of Float
source§fn determinant(&self) -> F
fn determinant(&self) -> F
Calculate the determinant of the matrix
source§impl<F: Float> SqMatrix4<F, FArray<F, 3>, FArray<F, 4>> for FArray2<F, 4, 16>
impl<F: Float> SqMatrix4<F, FArray<F, 3>, FArray<F, 4>> for FArray2<F, 4, 16>
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: &FArray<F, 3>, center: &FArray<F, 3>, up: &FArray<F, 3>) -> Self
fn look_at(eye: &FArray<F, 3>, center: &FArray<F, 3>, up: &FArray<F, 3>) -> Self
Generate a matrix that represents a ‘look at a vector’
source§fn translate3(&mut self, by: &FArray<F, 3>)
fn translate3(&mut self, by: &FArray<F, 3>)
Translate the matrix by a Vec3
source§fn translate4(&mut self, by: &FArray<F, 4>)
fn translate4(&mut self, by: &FArray<F, 4>)
Translate the matrix by a Vec4
source§impl<F: Float, const D: usize, const D2: usize> SubAssign<F> for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> SubAssign<F> for FArray2<F, D, D2>
source§fn sub_assign(&mut self, other: F)
fn sub_assign(&mut self, other: F)
Performs the
-=
operation. Read moresource§impl<F: Float, const D: usize, const D2: usize> SubAssign<FArray2<F, D, D2>> for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> SubAssign<FArray2<F, D, D2>> for FArray2<F, D, D2>
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moresource§impl<F: Float + Serialize> Transform<F, FArray<F, 3>, FArray<F, 4>, FArray2<F, 4, 16>, QArray<F, FArray<F, 3>, FArray<F, 4>>> for FQArrayTrans<F>
impl<F: Float + Serialize> Transform<F, FArray<F, 3>, FArray<F, 4>, FArray2<F, 4, 16>, QArray<F, FArray<F, 3>, FArray<F, 4>>> for FQArrayTrans<F>
source§fn of_trs(t: FArray<F, 3>, r: QArray<F, FArray<F, 3>, FArray<F, 4>>, s: F) -> Self
fn of_trs(t: FArray<F, 3>, r: QArray<F, FArray<F, 3>, FArray<F, 4>>, s: F) -> Self
Create an FQArrayTrans from a Vector3 translation, Quat rotation and Float scaling
source§fn translation(&self) -> FArray<F, 3>
fn translation(&self) -> FArray<F, 3>
Get the translation of the transformation