Skip to main content
Version: latest - a1.19.x βš–οΈ

πŸ“ Vector2D

A Vector2D composed of components (X, Y) with floating point precision. Used mainly for HUD and Drawing on screen.

πŸ‘Open Source
This structure is Open Sourced on GitHub. Feel free to make pull requests and suggest changes!

πŸŽ’ Examples​

local new_vector = Vector2D(1452.5, 512)

πŸ—οΈ Constructor​

local my_vector2d = Vector2D(X?, Y?)
TypeNameDefaultDescription
number X0X Coordinate
number Y0Y Coordinate

🧽 Properties​

TypeNameDescription
number XX Coordinate
number YY Coordinate

🦠 Functions​

info

This structure supports +, -, *, /, == and tostring operations.

This entity doesn't have own functions.