add method

void add(
  1. Vector3 other
)

Add other in-place.

Implementation

void add(Vector3 other) {
  x += other.x;
  y += other.y;
  z += other.z;
}