use of com.revolsys.geometry.algorithm.RayCrossingCounter in project com.revolsys.open by revolsys.
the class IndexedPointInAreaLocator method locate.
@Override
public Location locate(final double x, final double y) {
final RayCrossingCounter visitor = new RayCrossingCounter(x, y);
this.index.query(y, visitor);
return visitor.getLocation();
}
use of com.revolsys.geometry.algorithm.RayCrossingCounter in project com.revolsys.open by revolsys.
the class MCIndexedPointInAreaLocator method locate.
@Override
public Location locate(final double x, final double y) {
final RayCrossingCounter rcc = new RayCrossingCounter(x, y);
final MCSegmentCounter mcSegCounter = new MCSegmentCounter(rcc);
final BoundingBox rayEnv = new BoundingBoxDoubleXY(x, y, this.maxXExtent, y);
final List mcs = this.index.query(rayEnv);
countSegs(rcc, rayEnv, mcs, mcSegCounter);
return rcc.getLocation();
}
Aggregations