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