encase::matrix

Trait FromMatrixParts

Source
pub trait FromMatrixParts<T: MatrixScalar, const C: usize, const R: usize> {
    // 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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromMatrixParts<f32, 2, 2> for Mat2

Source§

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

Source§

impl FromMatrixParts<f32, 3, 3> for Mat3

Source§

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

Source§

impl FromMatrixParts<f32, 4, 4> for Mat4

Source§

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

Implementors§