sub method

Vector3 sub(
  1. dynamic v, {
  2. Vector3? w,
})

Implementation

Vector3 sub(v, {Vector3? w}) {
  if (w != null) {
    print('three.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.');
    return subVectors(v as Vector3, w);
  }

  x -= v.x;
  y -= v.y;

  if (v is Vector3) z -= v.z;

  return this;
}