Vec4
A four dimensional vector
Properties
x- doubley- doublez- doublew- double
Vec4:new(x, y, z, w)
Vec4:new(x, y, z, w)x- What to set x toy- What to set y toz- What to set z tow- 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