Trait bevy::render::render_resource::encase::matrix::FromMatrixParts

pub trait FromMatrixParts<T, const C: usize, const R: usize>
where T: MatrixScalar,
{ // Required method fn from_parts(parts: [[T; R]; C]) -> Self; }
Expand description

Enables the creation of a matrix (via [[T; R]; C])

Required Methods§

fn from_parts(parts: [[T; R]; C]) -> Self

Object Safety§

This trait is not object safe.

Implementors§

§

impl FromMatrixParts<f32, 2, 2> for Mat2

§

impl FromMatrixParts<f32, 3, 3> for Mat3

§

impl FromMatrixParts<f32, 4, 4> for Mat4