if (accel != null) {
RasterizedGeometry2D rgeom = accel.getRasterizedGeometry();
if (rgeom != null) {
if (gtB == Geometry.GeometryType.Point) {
Point2D ptB = ((Point) geomB).getXY();
HitType hit = rgeom.queryPointInGeometry(ptB.x,
ptB.y);
if (hit == RasterizedGeometry2D.HitType.Inside) {
return (int) Relation.Contains;
} else if (hit == RasterizedGeometry2D.HitType.Outside) {
return (int) Relation.Disjoint;