function Mirror(Value: Integer; Max: Integer): Integer; overload;
function Mirror(Value: Integer; Min: Integer; Max: Integer): Integer; overload;
First version mirrors integer Value in [0..Max] range. E.g. if Value is 10 and Max is 9, result will be 8.
Second version mirrors integer Value in [Min..Max] range.
This function is used in TWrapMode wmMirror.
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024