Skip to main content

Vector2D

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


Examples

local new_vector = Vector2D(1452.5, 512)

Constructors

Default Constructor

local my_vector2d = Vector2D(X?, Y?)
TypeNameDefaultDescription
numberX0X Coordinate
numberYXY Coordinate

🧽 Properties

TypeNameDescription
numberXX Coordinate
numberYY Coordinate

Functions

info

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

This entity doesn't have own functions.