macro_rules! vec2 {
    ($a:expr) => { ... };
    ($xy:expr, $z:expr) => { ... };
}
Expand description

Create 2D scalar vectors via different forms.

This macro allows to create 2D (V2) scalar vectors from two forms:

  • vec2!(xy), which acts as the cast operator. Only types T satisfying [Vec2] are castable.
  • vec2!(x, y), which builds a V2<T> for x: T and y: T.