RectifiedContour

class RectifiedContour(contour: ShapeContour, distanceTolerance: Double = 0.5, lengthScale: Double = 1.0) : RectifiedPath<Vector2> (source)

Constructors

Link copied to clipboard
constructor(contour: ShapeContour, distanceTolerance: Double = 0.5, lengthScale: Double = 1.0)

Properties

Link copied to clipboard
val contour: ShapeContour
Link copied to clipboard

Lazy-evaluated list of parameter intervals corresponding to the points property, used for mapping and inverse mapping of parameter values.

Link copied to clipboard
val originalPath: Path<Vector2>

The underlying path being rectified.

Link copied to clipboard

Final list of points used in the rectification process, possibly including an additional point to close the loop if the original path is closed.

Functions

Link copied to clipboard

Evaluate curvature for t

Link copied to clipboard
fun direction(t: Double): Vector2
Link copied to clipboard

Computes an inverse rectified t-value for the given normalized t parameter. This method determines the original parameter space value from a rectified (uniformly distributed) parameter space value.

Link copied to clipboard
fun RectifiedContour.mix(other: RectifiedContour, blendFunction: (Double) -> Double): ShapeContour

Blends two rectified contours by applying a blend function to their segments.

Link copied to clipboard
fun normal(t: Double): Vector2
Link copied to clipboard
fun pose(t: Double): Matrix44
Link copied to clipboard
fun position(t: Double): Vector2
Link copied to clipboard

computes a rectified t-value for originalPath

Link copied to clipboard
open override fun splitAt(ascendingTs: List<Double>, weldEpsilon: Double): List<ShapeContour>

Split contour at ascendingTs

Link copied to clipboard
Link copied to clipboard
open override fun sub(t0: Double, t1: Double): ShapeContour
Link copied to clipboard
fun velocity(t: Double): Vector2