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 for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> AddAssign 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 for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> MulAssign 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 for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> SubAssign 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
impl<F: Copy + Float, const D: usize, const D2: usize> Copy for FArray2<F, D, D2>
impl<F: Float> SqMatrix3<FArray<F, 3>, F> for FArray2<F, 3, 9>
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> 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