Vec2.Vec2

void Vec2(float x, float y)

A basic constructor, just copies the values in!

   
float x X component of the vector.
float y Y component of the vector.
void Vec2(Vector2 v)

Initialize from a System.Numerics vector, this can also be done by an implicit or explicit cast/assignment.

   
Vector2 v A System.Numerics vector.
void Vec2(float xy)

A short hand constructor, just sets all values as the same!

   
float xy X and Y component of the vector.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!