Trait dyon::embed::ConvertVec4

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

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

Required Methods§

source

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

Converts vec4 to self.

source

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

Converts from self to mat4.

Implementations on Foreign Types§

source§

impl ConvertVec4 for [f32; 2]

source§

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

source§

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

source§

impl ConvertVec4 for [f64; 3]

source§

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

source§

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

source§

impl ConvertVec4 for [f32; 3]

source§

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

source§

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

source§

impl ConvertVec4 for [f64; 4]

source§

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

source§

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

source§

impl ConvertVec4 for [f64; 2]

source§

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

source§

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

source§

impl ConvertVec4 for [f32; 4]

source§

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

source§

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

Implementors§