clamp method
void
clamp(
- Vector3 min,
- Vector3 max
inherited
Clamp each entry n in this in the range [min[n]]-[max[n]].
Implementation
void clamp(Vector3 min, Vector3 max) {
final Float32List minStorage = min.storage;
final Float32List maxStorage = max.storage;
_v3storage[2] = _v3storage[2].clamp(minStorage[2], maxStorage[2]);
_v3storage[1] = _v3storage[1].clamp(minStorage[1], maxStorage[1]);
_v3storage[0] = _v3storage[0].clamp(minStorage[0], maxStorage[0]);
}