clamp method
V3
clamp(
- V3 min,
- V3 max
Implementation
V3 clamp(V3 min, V3 max) => _v3(
math.min(max.x, math.max(min.x, x)),
math.min(max.y, math.max(min.y, y)),
math.min(max.z, math.max(min.z, z)),
);