Trait shades::Vec2 [−][src]
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.