pub struct Matrix3 { /* private fields */ }Implementations§
Source§impl Matrix3
- Matrix3 Module
- Representation of a 3x3 Matrix
- It’s a column-major matrix.
- When setting the elements, they are set in row-major order.
impl Matrix3
- Matrix3 Module
- Representation of a 3x3 Matrix
- It’s a column-major matrix.
- When setting the elements, they are set in row-major order.
pub fn set( &mut self, m0: f64, m1: f64, m2: f64, m3: f64, m4: f64, m5: f64, m6: f64, m7: f64, m8: f64, ) -> Matrix3
Sourcepub fn determinant(&self) -> f64
pub fn determinant(&self) -> f64
- Determinant for a 3x3 matrix.
- https://en.wikipedia.org/wiki/Determinant
pub fn adjucate(&self) -> Matrix3
pub fn inverse(&self) -> Option<Matrix3>
pub fn transpose(&self) -> Matrix3
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Matrix3
impl<'de> Deserialize<'de> for Matrix3
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
Source§impl FromWasmAbi for Matrix3
impl FromWasmAbi for Matrix3
Source§impl IntoWasmAbi for Matrix3
impl IntoWasmAbi for Matrix3
Source§impl LongRefFromWasmAbi for Matrix3
impl LongRefFromWasmAbi for Matrix3
Source§impl OptionFromWasmAbi for Matrix3
impl OptionFromWasmAbi for Matrix3
Source§impl OptionIntoWasmAbi for Matrix3
impl OptionIntoWasmAbi for Matrix3
Source§impl RefFromWasmAbi for Matrix3
impl RefFromWasmAbi for Matrix3
Source§impl RefMutFromWasmAbi for Matrix3
impl RefMutFromWasmAbi for Matrix3
Source§impl TryFromJsValue for Matrix3
impl TryFromJsValue for Matrix3
Source§impl VectorFromWasmAbi for Matrix3
impl VectorFromWasmAbi for Matrix3
Source§impl VectorIntoWasmAbi for Matrix3
impl VectorIntoWasmAbi for Matrix3
impl SupportsConstructor for Matrix3
impl SupportsInstanceProperty for Matrix3
impl SupportsStaticProperty for Matrix3
Auto Trait Implementations§
impl Freeze for Matrix3
impl RefUnwindSafe for Matrix3
impl Send for Matrix3
impl Sync for Matrix3
impl Unpin for Matrix3
impl UnwindSafe for Matrix3
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<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.