Skip to main content

FromMatrixParts

Trait FromMatrixParts 

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromMatrixParts<f32, 2, 2> for Mat2

Source§

fn from_parts(parts: [[f32; 2]; 2]) -> Mat2

Source§

impl FromMatrixParts<f32, 3, 3> for Mat3

Source§

fn from_parts(parts: [[f32; 3]; 3]) -> Mat3

Source§

impl FromMatrixParts<f32, 4, 4> for Mat4

Source§

fn from_parts(parts: [[f32; 4]; 4]) -> Mat4

Implementors§