- rect-unscale rect factorprocedure
- rect-unscale! rect factor #!optional destprocedure
Efficiently divide the X, Y, W, and H values of rect by factor (a float or integer). This is equivalent to (rect-scale rect (/ 1 factor)), but is more convenient and efficient (especially if factor is an integer).
These procedures signal an error if factor is 0. sdl2:rect can only hold integer values, so the results will be truncated to integers. The results will be clamped to the range -2147483648 to 2147483647.
- rect-unscale returns a new managed sdl2:rect.
- rect-unscale! modifies and returns dest. If dest is omitted, rect is modified and returned.
These procedures are available in sdl2 egg version 0.2.0 and higher.