addScaled method

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

this += other * scalar.

Implementation

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