add method

Vec3 add(
  1. Vec3 a, [
  2. Vec3? b
])

Add a to this vector

if b is provided add a+b

Implementation

Vec3 add (Vec3 a,[Vec3? b ]) {
  if ( b != null ) return addVectors( a, b );
  x += a.x;
  y += a.y;
  z += a.z;
  return this;
}