Vector2D¶
A Vector2D composed of components (X, Y) with floating point precision. Used mainly for HUD and Drawing on screen.
Tip
This structure is Open Sourced at https://github.com/nanos-world/nanos-world-lua-lib. Feel free to push merge requests and suggest changes!
Tip
This structure supports +, -, *, /, ==, and tostring operations.
Usage¶
local NewVector2D = Vector2D(1452.5, 512)