subScalar method

Vector3 subScalar(
  1. double s
)

Subtracts s from this vector's x, y and z compnents.

Implementation

Vector3 subScalar(double s) {
  x -= s;
  y -= s;
  z -= s;
  return this;
}