create
Default constructor for the Vector2 class. Returns a Vector2 object.
Vector2(mixed vectorOrX[, float y])
- vectorOrX:
float | table | vector2
– Vector2, table, or float indicating vector's coordinates - y:
float
– If vectorOrX is a float, this is the Y coordinate