pointAtLength

open fun pointAtLength(length: Double, distanceTolerance: Double = 0.5): T(source)

Calculates the point at a given distance along this ShapeContour.

Return

Resulting Vector2 or Vector2.INFINITY for an empty ShapeContour.

Parameters

length

the distance along the ShapeContour

distanceTolerance

the tolerance used for simplifying the ShapeContour, lower values result in more accurate results, but slower calculation

See also