A four dimensional vector
x - double
x
y - double
y
z - double
z
w - double
w
Vec4:new(x, y, z, w)
x - What to set x to
y - What to set y to
z - What to set z to
w - What to set w to (This is usually the alpha value of a color)
Constructs a new Vec4 with the provided x, y, z and w.
Example:
local red = Vec4:new(255, 0, 0, 255)
Last updated 3 years ago