Home | GR32_Lowlevel |
Wrap
function Wrap(Value: Integer; Max: Integer): Integer; overload;
function Wrap(Value: Integer; Min: Integer; Max: Integer): Integer; overload;
Description
First version wraps integer Value in [0..Max] range. E.g. if Value is 10 and Max is 9, result will be 0.
Second version wraps integer Value in [Min..Max] range.
See Also
Copyright ©2000-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007