Trait dyon::embed::ConvertMat4

source ·
pub trait ConvertMat4: Sized {
    // Required methods
    fn from(val: [[f32; 4]; 4]) -> Self;
    fn to(&self) -> [[f32; 4]; 4];
}
Expand description

Convert from and to mat4.

Required Methods§

source

fn from(val: [[f32; 4]; 4]) -> Self

Converts mat4 to self.

source

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

Converts from self to mat4.

Implementations on Foreign Types§

source§

impl ConvertMat4 for [[f32; 4]; 4]

source§

fn from(val: [[f32; 4]; 4]) -> Self

source§

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

Implementors§