int clamp(int value, int min, int max)
float clamp(float value, float min, float max)
Returns ‹value› clamped between ‹min› and ‹max›.
vector2 clamp(vector2 value, vector2 min, vector2 max)
vector clamp(vector value, vector min, vector max)
vector4 clamp(vector4 value, vector4 min, vector4 max)
Returns a new vector containing the clamped value of each component.
See also | |
interp |