Trait shades::Vec4[][src]

pub trait Vec4<A> {
    fn vec4(args: A) -> Self;
}

Trait allowing to create 4D scalar vector (V4)constructors.

4D scalar vectors can be created from either four sole scalars, a single 3D scalar vector with a single scalar, two 2D scalar vectors, a 2D scalar vector and a sole scalar or a single 4D scalar vector (identity function).

The A type variable represents the arguments type. In the case of several arguments, tuples are used.

You are advised to use the vec4! macro instead as the interface of this function is not really user-friendly.

Required methods

fn vec4(args: A) -> Self[src]

Make a V4 from A.

Loading content...

Implementors

impl<'a, T> Vec4<(Expr<V2<T>>, Expr<T>, Expr<T>)> for Expr<V4<T>>[src]

impl<'a, T> Vec4<(Expr<T>, Expr<T>, Expr<T>, Expr<T>)> for Expr<V4<T>>[src]

impl<T> Vec4<(Expr<V2<T>>, Expr<V2<T>>)> for Expr<V4<T>>[src]

impl<T> Vec4<(Expr<V3<T>>, Expr<T>)> for Expr<V4<T>>[src]

Loading content...