Class ArcCurve2

An extensible curve object which contains methods for interpolation

Hierarchy

Constructors

Properties

aClockwise: boolean
aEndAngle: number
aRotation: number
aStartAngle: number
aX: number
aY: number
arcLengthDivisions: number = 200

This value determines the amount of divisions when calculating the cumulative segment lengths of a curve via .getLengths. To ensure precision when using methods like .getSpacedPoints, it is recommended to increase .arcLengthDivisions if the curve is very large.

cacheArcLengths: number[]
needsUpdate: boolean = false
xRadius: number
yRadius: number

Methods

  • Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation getTangent(t: number, optionalTarget?: T): T;

    Parameters

    Returns Vector2

Generated using TypeDoc