Type alias GetCoordinate<P, PS>

GetCoordinate<P, PS>: ((point, i, points) => number)

Type Parameters

  • P

  • PS

Type declaration

    • (point, i, points): number
    • A function to extract a x- or y-coordinate from the specified point.

      Parameters

      • point: P
      • i: number
      • points: PS

      Returns number