setScalar method

Vector3 setScalar(
  1. double scalar
)

Set the x, y and z values of this vector both equal to scalar.

Implementation

Vector3 setScalar(double scalar) {
  x = scalar;
  y = scalar;
  z = scalar;

  return this;
}