The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home MathPack Math1 Comparison & Limiting ConfineValue | |||||||||
See also: WithinBounds, ConfinePointToRect | |||||||||
ConfineValue |
|||||||||
The function ConfineValue checks whether the value Inval is outside the interval spanned by the parameters Boundary1 and Boundary2. If Inval falls outside the interval the function returns the value of the closest boundary, otherwise Inval is returned.
|