bevy_render::render_resource::encase::matrix

Trait AsMutMatrixParts

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

Enables writing to the matrix (via &mut [[T; R]; C])

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl AsMutMatrixParts<f32, 2, 2> for Mat2
where Mat2: AsMut<[f32; 4]>, f32: MatrixScalar,

Source§

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

Source§

impl AsMutMatrixParts<f32, 3, 3> for Mat3
where Mat3: AsMut<[f32; 9]>, f32: MatrixScalar,

Source§

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

Source§

impl AsMutMatrixParts<f32, 4, 4> for Mat4

Source§

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

Implementors§