pub struct FArray<F: Float, const D: usize> { /* private fields */ }
Expand description
Trait Implementations§
source§impl<F: Float, const D: usize> AddAssign<F> for FArray<F, D>
impl<F: Float, const D: usize> AddAssign<F> for FArray<F, D>
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> AddAssign<FArray<F, D>> for FArray<F, D>
impl<F: Float, const D: usize> AddAssign<FArray<F, D>> for FArray<F, D>
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> Deserialize<'de> for FArray<F, D>
impl<'de, F: Float + Deserialize<'de>, const D: usize> Deserialize<'de> for FArray<F, D>
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> DivAssign<F> for FArray<F, D>
impl<F: Float, const D: usize> DivAssign<F> for FArray<F, D>
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> DivAssign<FArray<F, D>> for FArray<F, D>
impl<F: Float, const D: usize> DivAssign<FArray<F, D>> for FArray<F, D>
source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/=
operation. Read moresource§impl<F: Float, const D: usize> MulAssign<F> for FArray<F, D>
impl<F: Float, const D: usize> MulAssign<F> for FArray<F, D>
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> MulAssign<FArray<F, D>> for FArray<F, D>
impl<F: Float, const D: usize> MulAssign<FArray<F, D>> for FArray<F, D>
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> SubAssign<F> for FArray<F, D>
impl<F: Float, const D: usize> SubAssign<F> for FArray<F, D>
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> SubAssign<FArray<F, D>> for FArray<F, D>
impl<F: Float, const D: usize> SubAssign<FArray<F, D>> for FArray<F, D>
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
source§impl<F: Float, const D: usize> Vector<F, D> for FArray<F, D>
impl<F: Float, const D: usize> Vector<F, D> for FArray<F, D>
source§fn from_array(data: [F; D]) -> Self
fn from_array(data: [F; D]) -> Self
Create a vector from an array of Float
source§fn into_array(self) -> [F; D]
fn into_array(self) -> [F; D]
Create a vector from an array of Float
source§fn mix(self, other: &Self, t: F) -> Self
fn mix(self, other: &Self, t: F) -> Self
Create a linear combination of this Vector and another using parameter
t
from zero to onesource§fn reduce_sum(&self) -> F
fn reduce_sum(&self) -> F
Sum all of the components of the vector
source§fn distance_sq(&self, other: &Self) -> F
fn distance_sq(&self, other: &Self) -> F
Return the square of the distance between this vector and another
source§impl<F: Float> Vector3<F> for FArray<F, 3>
impl<F: Float> Vector3<F> for FArray<F, 3>
source§fn cross_product(&self, other: &Self) -> Self
fn cross_product(&self, other: &Self) -> Self
Cross product of two 3-element vectors
source§fn uniform_dist_sphere3(x: [F; 2], map: bool) -> Self
fn uniform_dist_sphere3(x: [F; 2], map: bool) -> Self
Get a point on a sphere uniformly distributed for a point
where x in [0,1) and y in [0,1)