containsIndex method

bool containsIndex(
  1. int cellIndex,
  2. double x,
  3. double y
)

Returns true if point (x, y) is inside the Voronoi cell at index cellIndex.

Implementation

bool containsIndex(int cellIndex, double x, double y) {
  final nearest = _findNearestPoint(x, y);
  return nearest == cellIndex;
}