pub struct Mat5(pub [[f32; 5]; 5]);Tuple Fields§
§0: [[f32; 5]; 5]Implementations§
Source§impl Mat5
impl Mat5
pub fn identity() -> Self
pub fn zero() -> Self
pub fn mul_vec(&self, v: [f32; 5]) -> [f32; 5]
pub fn mul(&self, rhs: &Self) -> Self
pub fn transpose(&self) -> Self
Sourcepub fn translation_4d(delta: Vec4H) -> Self
pub fn translation_4d(delta: Vec4H) -> Self
4D translation matrix (shifts along the w axis of hyperbolic space)
Trait Implementations§
impl Copy for Mat5
Source§impl<'de> Deserialize<'de> for Mat5
impl<'de> Deserialize<'de> for Mat5
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Mat5
Auto Trait Implementations§
impl Freeze for Mat5
impl RefUnwindSafe for Mat5
impl Send for Mat5
impl Sync for Mat5
impl Unpin for Mat5
impl UnsafeUnpin for Mat5
impl UnwindSafe for Mat5
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