Click here to support Nimbus development and make a donation at www.pledgie.com !
An iOS framework whose growth is bounded by O(documentation).
General Purpose Methods

Overview

For general purpose foundation type manipulation.

Functions

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

Function Documentation

CGFloat boundf ( CGFloat  value,
CGFloat  min,
CGFloat  max 
)

Bounds a given value within the min and max values.

If max < min then value will be min.

Returns:
min <= result <= max

Definition at line 63 of file NIFoundationMethods.m.

NSInteger boundi ( NSInteger  value,
NSInteger  min,
NSInteger  max 
)

Bounds a given value within the min and max values.

If max < min then value will be min.

Returns:
min <= result <= max

Definition at line 79 of file NIFoundationMethods.m.

Generated for Nimbus by doxygen 1.7.4-20110629