ProtoTwin API
    Preparing search index...

    Class CompositeCurve

    Immutable composite curve.

    A Composite curve is a curve formed from several curves.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get closed(): boolean

      Whether the curve is closed.

      Returns boolean

    • get curves(): readonly Curve[]

      The individual curves that form the composite curve.

      Returns readonly Curve[]

    • get length(): number

      The length of the curve.

      Returns number

    Methods

    • Evaluates the frame at the specified distance.

      Parameters

      • s: number

        The distance.

      Returns Frame

      The frame.

    • Evaluates the normal to the composite curve at the specified distance.

      Parameters

      • s: number

        The distance.

      Returns Vec3

      The normal to the curve.

    • Parameters

      • s: number

      Returns number

    • Evaluates the point on the composite curve at the specified distance.

      Parameters

      • s: number

        The distance.

      Returns Vec3

      The point on the curve.

    • Calculates the distance for the specified point when projected onto the composite curve.

      Parameters

      Returns number

      The distance (arc-length) for the projected point.

    • Parameters

      • s: number
      • distances: number[]

      Returns number

    • Evaluates the tangent to the composite curve at the specified distance.

      Parameters

      • s: number

        The distance.

      Returns Vec3

      The tangent to the curve.