addScaledVector method

Vector3 addScaledVector(
  1. Vector3 v,
  2. double s
)

Adds the multiple of v and s to this vector.

Implementation

Vector3 addScaledVector(Vector3 v, double s) {
  x += v.x * s;
  y += v.y * s;
  z += v.z * s;
  return this;
}