subScaled method

void subScaled(
  1. Vector3 other,
  2. double scalar
)

this -= other * scalar.

Implementation

void subScaled(Vector3 other, double scalar) {
  x -= other.x * scalar;
  y -= other.y * scalar;
  z -= other.z * scalar;
}