Constructors
Vector2.new(x, y)
x
and y
must be integers! An example:
local vector2 = Vector2.new(2, 4)
printl(vector2.x) -- prints 2
Properties
The property x component of the Vector2
The property y component of the Vector2
Methods
Responses are generated using AI and may contain mistakes.