Trait shades::Vec2[][src]

pub trait Vec2<A> {
    fn vec2(args: A) -> Self;
}

Trait allowing to create 2D scalar vector (V2)constructors. 2D scalar vectors can be created from either two sole scalars or a single 2D 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 vec2! macro instead as the interface of this function is not really user-friendly.

Required methods

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

Make a V2 from A.

Loading content...

Implementors

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

Loading content...