getClosestPointTestCounts MethodStatic

Return an object summarizing closest point test counts. 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.

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

Last Updated: 25 April, 2024