threejs-worldgen
    Preparing search index...

    Function curve

    • Piecewise-linear curve through [x, y] points sorted by x; flat beyond the ends.

      Parameters

      • points: readonly (readonly [number, number])[]
      • x: number

      Returns number