Skip to content

Math

Functions

Return Type Name
vec2 vec2()
vec2 vec2(number xy)
vec2 vec2(number x, number y)
vec3 vec3()
vec3 vec3(number xyz)
vec3 vec3(number x, number y, number z)
scr_vec3 scr_vec3()
scr_vec3 scr_vec3(number xyz)
scr_vec3 scr_vec3(number x, number y, number z)

Types

vec2

Property Name
number x
number y
Return Type Name Description
vec2 normalize() Returns a normalized instance of the vector
number dot(vec2 other) Dot product the vector with another

vec3

Property Name
number x
number y
number z
Return Type Name Description
vec3 normalize() Returns a normalized instance of the vector
number dot(vec3 other) Dot product the vector with another
number distance3d(vec3 other) 3D distance between another

scr_vec3

Property Name
number x
number y
number z
Return Type Name Description
scr_vec3 normalize() Returns a normalized instance of the vector
number dot(scr_vec3 other) Dot product the vector with another
number distance3d(scr_vec3 other) 3D distance between another