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: booleantrue): { 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: 17 December, 2024