Skip to content
FYP edited this page Aug 9, 2017 · 1 revision

Class vector3d

Static Members

vector3d.new

Vector vector = vector3d.new()
Vector vector = vector3d.new(float x, float y, float z)
Vector vector = vector3d.new(Vector vector)

Creates new vector3d object.

vector3d.from_memory

Vector vector = vector3d.from_memory(uint vector_ptr)

Members

vector:get_pointer

uint ptr = vector:get_pointer()

vector.x

float x = vector.x

vector.y

float y = vector.y

vector.z

float z = vector.z

vector:get

float x, float y, float z = vector:get()

vector:set

vector:set(float x, float y, float z)

vector:magnitude

float value = vector:magnitude()

vector:magnitude2d

float value = vector:magnitude2d()

vector:normalize

vector:normalize()