clampScalar method

void clampScalar (double min, double max)

Clamp entries in this in the range min-max.

Implementation

void clampScalar(double min, double max) {
  _v4storage[0] = _v4storage[0].clamp(min, max).toDouble();
  _v4storage[1] = _v4storage[1].clamp(min, max).toDouble();
  _v4storage[2] = _v4storage[2].clamp(min, max).toDouble();
  _v4storage[3] = _v4storage[3].clamp(min, max).toDouble();
}