#[repr(C, align(8))]pub struct Mat2x2 {
pub inner: [Vec2; 2],
/* private fields */
}
Expand description
Matrix of f32
values with 2 rows and 2 columns. Has size 16 and alignment 8.
Fields§
§inner: [Vec2; 2]
Implementations§
Trait Implementations§
Source§impl From<ColumnMatrix2<f32>> for Mat2x2
impl From<ColumnMatrix2<f32>> for Mat2x2
Source§fn from(other: ColumnMatrix2<f32>) -> Self
fn from(other: ColumnMatrix2<f32>) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Mat2x2
impl PartialOrd for Mat2x2
impl Copy for Mat2x2
impl Pod for Mat2x2
impl StructuralPartialEq for Mat2x2
Auto Trait Implementations§
impl Freeze for Mat2x2
impl RefUnwindSafe for Mat2x2
impl Send for Mat2x2
impl Sync for Mat2x2
impl Unpin for Mat2x2
impl UnwindSafe for Mat2x2
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.