addScalar method

Vector3 addScalar(
  1. double s
)

Adds the scalar value s to this vector's x, y and z values.

Implementation

Vector3 addScalar(double s) {
  x += s;
  y += s;
  z += s;
  return this;
}