[][src]Trait dyon::embed::ConvertVec4

pub trait ConvertVec4: Sized {
    fn from(val: [f32; 4]) -> Self;
fn to(&self) -> [f32; 4]; }

Implemented by types that can be converted to and from vec4.

Required methods

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

Converts vec4 to self.

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

Converts from self to mat4.

Loading content...

Implementations on Foreign Types

impl ConvertVec4 for [f32; 2][src]

impl ConvertVec4 for [f32; 3][src]

impl ConvertVec4 for [f32; 4][src]

impl ConvertVec4 for [f64; 2][src]

impl ConvertVec4 for [f64; 3][src]

impl ConvertVec4 for [f64; 4][src]

Loading content...

Implementors

impl ConvertVec4 for Vec4[src]

Loading content...