The iOS framework that grows only as fast as its documentation
General Purpose Methods

Functions

CGFloat boundf (CGFloat value, CGFloat min, CGFloat max)
 
NSInteger boundi (NSInteger value, NSInteger min, NSInteger max)
 
CGFloat NIBoundf (CGFloat value, CGFloat min, CGFloat max)
 
NSInteger NIBoundi (NSInteger value, NSInteger min, NSInteger max)
 

Overview

For general purpose foundation type manipulation.

Function Documentation

boundf

Deprecated method.

CGFloat boundf;
Discussion

Use NIBoundf instead.

boundi

Deprecated method.

NSInteger boundi;
Discussion

Use NIBoundi instead.

NIBoundf

Bounds a given value within the min and max values.

CGFloat NIBoundf;
Discussion

If max < min then value will be min.

Returns
min <= result <= max

NIBoundi

Bounds a given value within the min and max values.

NSInteger NIBoundi;
Discussion

If max < min then value will be min.

Returns
min <= result <= max