Vec4

A four dimensional vector

Properties

  • x - double

  • y - double

  • z - double

  • w - double

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