Skip to main content

Curve

Base curve class providing common curve functionality.

Properties

PropertyTypeDescription
startArrowSimpleSignal<boolean, this>Start arrow
endArrowSimpleSignal<boolean, this>End arrow
arrowSizeSimpleSignal<number, this>Arrow size

Methods

arcLength

arcLength(): number

Calculates the curve length.

completion

completion(point: Vector2): number

Gets the completion (0-1) of a point on the curve.

getPointAtPercentage

getPointAtPercentage(t: number): Vector2

Gets the point at a specified percentage on the curve.