Class BezierCurve

Constructors

Properties

controlVertexCount: number

Number of control vertices in this curve

dimension: number

Dimension of Bezier

isRational: boolean

Gets a value indicating whether or not the curve is rational. Rational curves have control-points with custom weights.

isValid: boolean

Tests an object to see if it is valid.

Methods

  • Returns boolean

    true if successful. false if desired_dimension < 1

    Description

    Change dimension of bezier.

  • Parameters

    • t: number

      Evaluation parameter.

    Returns number[]

    Curvature vector of the curve at the parameter t.

    Description

    Evaluate the curvature vector at a curve parameter.

  • Returns boolean

    true if successful. false if desiredDegree < current degree.

    Description

    Increase degree of bezier

  • Returns boolean

    true if successful

    Description

    Make bezier non-rational

  • Returns boolean

    true if successful

    Description

    Make bezier rational

  • Parameters

    • t: number

      Evaluation parameter.

    Returns number[]

    Point (location of curve at the parameter t).

    Description

    Evaluates point at a curve parameter.

  • Parameters

    • t: number

      parameter must satisfy 0 < t < 1

    Returns object

    true on success

    Description

    Divides the Bezier curve at the specified parameter.

  • Parameters

    • t: number

      Evaluation parameter.

    Returns number[]

    Unit tangent vector of the curve at the parameter t.

    Description

    Evaluates the unit tangent vector at a curve parameter.

  • Returns NurbsCurve

    NURBS representation of the curve on success, null on failure.

    Description

    Constructs a NURBS curve representation of this curve.

Generated using TypeDoc