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 moreSource§impl<'de> Deserialize<'de> for FArray2<f32, 2, 4>
impl<'de> Deserialize<'de> for FArray2<f32, 2, 4>
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>
impl<'de> Deserialize<'de> for FArray2<f32, 3, 9>
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>
impl<'de> Deserialize<'de> for FArray2<f32, 4, 16>
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>
impl<'de> Deserialize<'de> for FArray2<f64, 2, 4>
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>
impl<'de> Deserialize<'de> for FArray2<f64, 3, 9>
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>
impl<'de> Deserialize<'de> for FArray2<f64, 4, 16>
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<'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 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 SqMatrix<f32, 2, 4> for FArray2<f32, 2, 4>
impl SqMatrix<f32, 2, 4> for FArray2<f32, 2, 4>
Source§impl SqMatrix<f32, 3, 9> for FArray2<f32, 3, 9>
impl SqMatrix<f32, 3, 9> for FArray2<f32, 3, 9>
Source§impl SqMatrix<f32, 4, 16> for FArray2<f32, 4, 16>
impl SqMatrix<f32, 4, 16> for FArray2<f32, 4, 16>
Source§impl SqMatrix<f64, 2, 4> for FArray2<f64, 2, 4>
impl SqMatrix<f64, 2, 4> for FArray2<f64, 2, 4>
Source§impl SqMatrix<f64, 3, 9> for FArray2<f64, 3, 9>
impl SqMatrix<f64, 3, 9> for FArray2<f64, 3, 9>
Source§impl SqMatrix<f64, 4, 16> for FArray2<f64, 4, 16>
impl SqMatrix<f64, 4, 16> for FArray2<f64, 4, 16>
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 moreimpl<F: Copy + Float, const D: usize, const D2: usize> Copy for FArray2<F, D, D2>
impl<F: Float, const D: usize, const D2: usize> StructuralPartialEq for FArray2<F, D, D2>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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