getX method

double getX(
  1. int i
)

Gets the x coordinate of point at index i.

Implementation

double getX(int i) => coords[i * 2];