-
Notifications
You must be signed in to change notification settings - Fork 3
Vector
FYP edited this page Aug 9, 2017
·
1 revision
Vector vector = vector3d.new()
Vector vector = vector3d.new(float x, float y, float z)
Vector vector = vector3d.new(Vector vector)
Creates new vector3d
object.
Vector vector = vector3d.from_memory(uint vector_ptr)
uint ptr = vector:get_pointer()
float x = vector.x
float y = vector.y
float z = vector.z
float x, float y, float z = vector:get()
vector:set(float x, float y, float z)
float value = vector:magnitude()
float value = vector:magnitude2d()
vector:normalize()