addVectors method

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

Implementation

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

  return this;
}