clampScalar method

void clampScalar(
  1. double min,
  2. double max
)

Clamp entries this in the range min-max.

Implementation

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