Vector4

Object that represents a four-dimensional vector.

Constructors

V4(number X, number Y, number Y, number W)

Properties

xX component of the vector
yY component of the vector
zZ component of the vector
wW component of the vector

Static properties

Vector4 zeroShorthand for writing V4(0, 0, 0, 0)

Examples

local vector = V4(2, 2, 3, 1);

local zero = Vector4.zero;