ixfx
    Preparing search index...

    Function interpolate

    • Returns a relative point between two points

      interpolate(0.5, a, b); // Halfway point between a and b
      

      Alias for Lines.interpolate(amount, a, b);

      Parameters

      • amount: number

        Relative amount, 0-1

      • a: Geometry.Point
      • b: Geometry.Point
      • allowOverflow: boolean = false

        If true, length of line can be exceeded for amount of below 0 and above 1.

      Returns Geometry.Point

      Point