Skip to main content

vector

Description

Built-in euclidean vector math library. To use it, load it at the top of your script using require:

local vector = require("vector")
local myVec = vector(0, 0, 0)
info

The documentation for the vector type is unfinished as it relies on types that aren't in the docs yet.

Functions

__call

vector.__call(x: number, y: number, z: number): vector

Creates a new vector object