Category: Arithmetics
Since engine version: 1.0 OC
BoundBy
Description
Returns value if it is within the given boundaries (value >= lower_bound and value <= upper_bound). Otherwise returns the applicable limit.
Syntax
int BoundBy(int value, int lower_bound, int upper_bound);
Parameters
- value:
- Value to be compared.
- lower_bound:
- Lower limit.
- upper_bound:
- Upper limit.
See also: Inside