sub method

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

Subtract a from this vector or subtract a form b

Implementation

Vec3 sub (Vec3 a, [Vec3? b]) {
  if ( b != null ) return subVectors( a, b );
  x -= a.x;
  y -= a.y;
  z -= a.z;
  return this;
}