Skip to content

vec2_t

Type Name
number x
number y

Functions

new(x, y): vec2_t

Type Name
number x
number y

Constructor

1
local vector2d = vec2_t.new(0, 0)

length(): number

Returns the length of vector

1
2
local vector = vec2_t.new(100, 100)
local vector_length = vector:length()