Class EllipseCurve2

An extensible curve object which contains methods for interpolation

Hierarchy

Constructors

  • Parameters

    • aX: number = 0
    • aY: number = 0
    • xRadius: number = 1
    • yRadius: number = 1
    • aStartAngle: number = 0
    • aEndAngle: number = ...
    • aClockwise: boolean = false
    • aRotation: number = 0

    Returns EllipseCurve2

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

  • Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equi distance

    Parameters

    • u: number
    • Optional distance: number

    Returns number

Generated using TypeDoc