Source Academy Modules
    Preparing search index...

    Variable connect_endsConst

    connect_ends: (curve1: Curve, curve2: Curve) => Curve = CurveFunctions.connect_ends

    This function is a binary Curve operator: It takes two Curves as arguments and returns a new Curve. The two Curves are combined by using the full first Curve for the first portion of the result and by using the full second Curve for the second portion of the result. The second Curve is translated such that its point at fraction 0 is the same as the Point of the first Curve at fraction 1.

    Type Declaration

      • (curve1: Curve, curve2: Curve): Curve
      • Parameters

        • curve1: Curve

          first Curve

        • curve2: Curve

          second Curve

        Returns Curve

        result Curve