modulo MethodStatic
Return a
modulo period
.
- Both
a
andperiod
can be negative. - This function can be faster than the
%
operator for the common case whenp > 0
and-p < a < 2p
.
modulo(a: number, period: number): number
Parameter | Type | Description |
---|---|---|
a | number | |
period | number |
Returns - number
Defined in
- Geometry.ts Line 967
Last Updated: 23 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.