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 967
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.