Class CurvePath3

Hierarchy

  • CurvePath3

Constructors

Properties

Methods

Constructors

  • Constructs a CurvePath3 object with the given alpha and tension values

    Parameters

    • alpha: number = 0.5

      The alpha value for the curve

    • tension: number = 0

      The tension value for the curve

    Returns CurvePath3

Properties

alpha: number
controlPoints: Vector3[]
tension: number

Methods

  • Computes a point on the curve from the given control points and parameter values

    Returns

    The point on the curve at the given control points and parameter value

    Parameters

    • p0: Vector3

      The first control point

    • p1: Vector3

      The second control point

    • p2: Vector3

      The third control point

    • p3: Vector3

      The fourth control point

    • t: number

      The parameter value from 0-1 to calculate the point from

    Returns Vector3

  • Computes a point on the curve from the given segment and parameter values

    Returns

    The point on the curve at the given segment and parameter value, or null if the segment is out of range

    Parameters

    • segment: number

      The segment to calculate the point from

    • t: number

      The parameter value from 0-1 to calculate the point from

    Returns null | Vector3

Generated using TypeDoc