Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_LowLevel🞂WrapMemProcedure

WrapMem

Wraps a floating-point variable in-place to range [0..Max).

Declaration ​

pascal
procedure WrapMem(var Value: Single; Max: Cardinal);

Parameters ​

ParameterTypeDescription
ValueSingleFloating-point single variable to wrap in-place.
MaxCardinalInteger maximum range limit.

Description ​

WrapMem wraps the floating-point variable Value in place so that its resulting coordinate lies within the half-open interval [0..Max).

See also ​