Trait shades::Vec3[][src]

pub trait Vec3<A> {
    fn vec3(args: A) -> Self;
}

Trait allowing to create 3D scalar vector (V3)constructors.

3D scalar vectors can be created from either three sole scalars, a single 2D scalar vector with a single scalar or a single 3D 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 vec3! macro instead as the interface of this function is not really user-friendly.

Required methods

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

Make a V3 from A.

Loading content...

Implementors

impl<T> Vec3<(Expr<V2<T>>, Expr<T>)> for Expr<V3<T>>[src]

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

Loading content...