Struct dyon::vec4::Vec4 [] [src]

pub struct Vec4(pub [f32; 4]);

Wraps a 4D vector for easier embedding with Dyon.

Trait Implementations

impl Clone for Vec4
[src]

fn clone(&self) -> Vec4

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Vec4
[src]

impl Debug for Vec4
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ConvertVec4 for Vec4
[src]

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

Converts vec4 to self.

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

impl PopVariable for Vec4
[src]

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

Converts variable to self. The variable should be resolved before call. Read more

impl PushVariable for Vec4
[src]

fn push_var(&self) -> Variable

Converts from self to variable.

impl From<[f32; 2]> for Vec4
[src]

fn from(val: [f32; 2]) -> Vec4

Performs the conversion.

impl From<[f32; 3]> for Vec4
[src]

fn from(val: [f32; 3]) -> Vec4

Performs the conversion.

impl From<[f32; 4]> for Vec4
[src]

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

Performs the conversion.

impl From<[f64; 2]> for Vec4
[src]

fn from(val: [f64; 2]) -> Vec4

Performs the conversion.

impl From<[f64; 3]> for Vec4
[src]

fn from(val: [f64; 3]) -> Vec4

Performs the conversion.

impl From<[f64; 4]> for Vec4
[src]

fn from(val: [f64; 4]) -> Vec4

Performs the conversion.

impl From<(f32, f32)> for Vec4
[src]

fn from(val: (f32, f32)) -> Vec4

Performs the conversion.

impl From<(f32, f32, f32)> for Vec4
[src]

fn from(val: (f32, f32, f32)) -> Vec4

Performs the conversion.

impl From<(f32, f32, f32, f32)> for Vec4
[src]

fn from(val: (f32, f32, f32, f32)) -> Vec4

Performs the conversion.

impl From<(f64, f64)> for Vec4
[src]

fn from(val: (f64, f64)) -> Vec4

Performs the conversion.

impl From<(f64, f64, f64)> for Vec4
[src]

fn from(val: (f64, f64, f64)) -> Vec4

Performs the conversion.

impl From<(f64, f64, f64, f64)> for Vec4
[src]

fn from(val: (f64, f64, f64, f64)) -> Vec4

Performs the conversion.

impl Into<[f32; 2]> for Vec4
[src]

fn into(self) -> [f32; 2]

Performs the conversion.

impl Into<[f32; 3]> for Vec4
[src]

fn into(self) -> [f32; 3]

Performs the conversion.

impl Into<[f32; 4]> for Vec4
[src]

fn into(self) -> [f32; 4]

Performs the conversion.

impl Into<[f64; 2]> for Vec4
[src]

fn into(self) -> [f64; 2]

Performs the conversion.

impl Into<[f64; 3]> for Vec4
[src]

fn into(self) -> [f64; 3]

Performs the conversion.

impl Into<[f64; 4]> for Vec4
[src]

fn into(self) -> [f64; 4]

Performs the conversion.

impl Into<(f32, f32)> for Vec4
[src]

fn into(self) -> (f32, f32)

Performs the conversion.

impl Into<(f32, f32, f32)> for Vec4
[src]

fn into(self) -> (f32, f32, f32)

Performs the conversion.

impl Into<(f32, f32, f32, f32)> for Vec4
[src]

fn into(self) -> (f32, f32, f32, f32)

Performs the conversion.

impl Into<(f64, f64)> for Vec4
[src]

fn into(self) -> (f64, f64)

Performs the conversion.

impl Into<(f64, f64, f64)> for Vec4
[src]

fn into(self) -> (f64, f64, f64)

Performs the conversion.

impl Into<(f64, f64, f64, f64)> for Vec4
[src]

fn into(self) -> (f64, f64, f64, f64)

Performs the conversion.