stepCount MethodStatic
Return the number of steps to take so that numSteps * stepSize >= total.
minCountis returned in the following 3 cases:- (a)
stepSize <= 0 - (b)
stepSize >= total - (b)
numSteps < minCount
- (a)
maxCountis returned ifnumSteps > maxCount.
stepCount(stepSize: number, total: number, minCount: number = 1, maxCount: number = 101): number
| Parameter | Type | Description |
|---|---|---|
| stepSize | number | |
| total | number | |
| minCount | number | |
| maxCount | number |
Returns - number
Defined in
- Geometry.ts Line 1232
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.