pub struct Matrix(/* private fields */);
Implementations§
Source§impl Matrix
impl Matrix
Sourcepub fn init_from_matrix(&mut self, b: &Matrix) -> Option<Matrix>
pub fn init_from_matrix(&mut self, b: &Matrix) -> Option<Matrix>
Sourcepub fn init_identity(&mut self) -> Option<Matrix>
pub fn init_identity(&mut self) -> Option<Matrix>
Initializes self
with the identity matrix, i.e.:
.xx = 1.0, .xy = 0.0, .xz = 0.0, .xw = 0.0
.yx = 0.0, .yy = 1.0, .yz = 0.0, .yw = 0.0
.zx = 0.0, .zy = 0.0, .zz = 1.0, .zw = 0.0
.wx = 0.0, .wy = 0.0, .wz = 0.0, .ww = 1.0
§Returns
the initialized Matrix
Trait Implementations§
Source§impl Ord for Matrix
impl Ord for Matrix
Source§impl PartialOrd for Matrix
impl PartialOrd for Matrix
Source§impl StaticType for Matrix
impl StaticType for Matrix
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Matrix
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Freeze for Matrix
impl RefUnwindSafe for Matrix
impl !Send for Matrix
impl !Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
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