Class CubicBezierCurve3

An extensible curve object which contains methods for interpolation class Curve

Hierarchy

Constructors

Properties

arcLengthDivisions: number

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.

Default

200

type: string

Default

'CubicBezierCurve3'

Default

new THREE.Vector3()

Default

new THREE.Vector3()

Default

new THREE.Vector3()

Default

new THREE.Vector3()

Methods

  • Get total curve arc length

    Returns number

  • Get list of cumulative segment lengths

    Parameters

    • Optional divisions: number

    Returns number[]

  • Returns a vector for point t of the curve where t is between 0 and 1 getPoint(t: number, optionalTarget?: T): T;

    Parameters

    Returns THREE.Vector3

  • Returns a vector for point at relative position in curve according to arc length getPointAt(u: number, optionalTarget?: T): T;

    Parameters

    Returns THREE.Vector3

  • Get sequence of points using getPoint( t ) getPoints(divisions?: number): T[];

    Parameters

    • Optional divisions: number

    Returns THREE.Vector3[]

  • Get sequence of equi-spaced points using getPointAt( u ) getSpacedPoints(divisions?: number): T[];

    Parameters

    • Optional divisions: number

    Returns THREE.Vector3[]

  • 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 THREE.Vector3

  • Returns tangent at equidistance point u on the curve getTangentAt(u: number, optionalTarget?: T): T;

    Parameters

    Returns THREE.Vector3

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

    Parameters

    • u: number
    • distance: number

    Returns number

  • Returns object

  • Update the cumlative segment distance cache

    Returns void

  • Deprecated

    since r84.

    Parameters

    • constructorFunc: (() => void)
        • (): void
        • Returns void

    • getPointFunc: (() => void)
        • (): void
        • Returns void

    Returns (() => void)

      • (): void
      • Deprecated

        since r84.

        Returns void

Generated using TypeDoc