encase::matrix

Trait AsRefMatrixParts

Source
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§