vector - graphitemaster/gmqcc GitHub Wiki
A variable of type vector contains 3 fields. A vector field can be accessed by suffixing the
variable with _x
, _y
or _z
, or with the dot operator, v.x, v.y, v.z
.
Vector constants
A vector constant looks like a character constant in C containing 3 numbers:
vector foo = '1 2 3';
Accessing members
foo_x = 5;
foo_y = foo_x + foo_z;
// or
foo.x = 5;
foo.y = foo.x + foo.z;