Vector4

4D vector type, used to set uniforms in GLSL.

Constructors

this
this(T X, T Y, T Z, T W)

Construct from 4 vector components

this
this(Vector!(U) other)

Conversion constructor

this
this(Color source)

Construct vector from color.

Members

Variables

w
T w;

4th component (W) of the 4D vector

x
T x;

1st component (X) of the 4D vector

y
T y;

2nd component (Y) of the 4D vector

z
T z;

3rd component (Z) of the 4D vector

Meta