getY method

double getY(
  1. int i
)

Gets the y coordinate of point at index i.

Implementation

double getY(int i) => coords[i * 2 + 1];