Curve
Base curve class providing common curve functionality.
Properties
| Property | Type | Description |
|---|---|---|
startArrow | SimpleSignal<boolean, this> | Start arrow |
endArrow | SimpleSignal<boolean, this> | End arrow |
arrowSize | SimpleSignal<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.