pub trait AsRefMatrixParts<T: MatrixScalar, const C: usize, const R: usize> {
    // Required method
    fn as_ref_parts(&self) -> &[[T; R]; C];
}
Expand description

Enables reading from the matrix (via &[[T; R]; C])

Required Methods§

source

fn as_ref_parts(&self) -> &[[T; R]; C]

Implementations on Foreign Types§

source§

impl AsRefMatrixParts<f32, 2, 2> for Mat2
where Self: AsRef<[f32; 4]>, f32: MatrixScalar,

source§

fn as_ref_parts(&self) -> &[[f32; 2]; 2]

source§

impl AsRefMatrixParts<f32, 3, 3> for Mat3
where Self: AsRef<[f32; 9]>, f32: MatrixScalar,

source§

fn as_ref_parts(&self) -> &[[f32; 3]; 3]

source§

impl AsRefMatrixParts<f32, 4, 4> for Mat4
where Self: AsRef<[f32; 16]>, f32: MatrixScalar,

source§

fn as_ref_parts(&self) -> &[[f32; 4]; 4]

Implementors§