scale2 method

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

scale vector v with s and set for this vector

Implementation

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