getClosestPointTestCounts MethodStatic
The returned object has
- numCalls = number of times closestPoint was called.
- numCurvesTested = number of curves tested with full closestPoint
- numAssigned = number of times a new minimum value was recorded
- numCandidate = number of curves that would be tested in worst case. return an object summarizing closest point test counts
getClosestPointTestCounts(clear: boolean = true): { numAssigned: number, numCalls: number, numCandidate: number, numTested: number }
Parameter | Type | Description |
---|---|---|
clear | boolean | if true, counts are cleared after the return object is formed. |
Returns - { numAssigned: number, numCalls: number, numCandidate: number, numTested: number }
Defined in
- curve/CurveChainWithDistanceIndex.ts Line 655
Last Updated: 20 June, 2023