addVectors method

Vector4 addVectors(
  1. Vector4 a,
  2. Vector4 b
)

Implementation

Vector4 addVectors(Vector4 a, Vector4 b) {
  x = a.x + b.x;
  y = a.y + b.y;
  z = a.z + b.z;
  w = a.w + b.w;

  return this;
}