find method

int find(
  1. double x,
  2. double y
)

Finds the Voronoi cell containing point (x, y). Returns the index of the cell, or -1 if outside all cells.

Implementation

int find(double x, double y) {
  return _findNearestPoint(x, y);
}