Closed davesmith00000 closed 9 months ago
~Math.floorMod
may be the thing these days, rather than the old (((-1 % 2) + 2) % 2)
, business.~ floorMod doesn't work with doubles.
We're back to (number % divisor + divisor) % divisor
.
Implemented for Point, Radians, Size, Vertex, Vector 2/3/4.
By safe I mean a version that works with negative numbers. Applies to Point, Vertex, Vector2/3/4.