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: Point
    • b: Point
    • allowOverflow: boolean = false

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

    Returns Point

    Point