boolean (int position, int x, int y, int rowHeight, int nodeWidth, int circleRadius) { int x0 = nodeWidth * position + nodeWidth / 2; int y0 = rowHeight / 2; return distance(x0, y0, x, y) <= circleRadius; }