Trait encase::matrix::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

Object Safety§

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§