test_class.declarator: geomFact = new GeometryFactory()
test_class.modifier: private static
test_class.original_string: private static GeometryFactory geomFact = new GeometryFactory();
test_class.type: GeometryFactory
test_class.var_name: geomFact
test_class.declarator: wktReader = new WKTReader()
test_class.modifier: private static
test_class.original_string: private static WKTReader wktReader = new WKTReader();
test_class.type: WKTReader
test_class.var_name: wktReader
test_class.file: core/src/test/java/org/datasyslab/geospark/geometryObjects/CircleTest.java
test_class.identifier: CircleTest
test_case.body: @Test
      public void testIntersects()
              throws Exception
      {
          Circle circle = new Circle(makePoint(0.0, 0.0), 0.5);
          assertTrue(circle.intersects(makePoint(0, 0)));
          assertTrue(circle.intersects(makePoint(0.1, 0.2)));
          assertFalse(circle.intersects(makePoint(0.4, 0.4)));
          assertFalse(circle.intersects(makePoint(-1, 0.4)));
  
          assertTrue(circle.intersects(parseWkt("MULTIPOINT ((0.1 0.1), (0.2 0.4))")));
          assertTrue(circle.intersects(parseWkt("MULTIPOINT ((0.1 0.1), (1.2 0.4))")));
          assertFalse(circle.intersects(parseWkt("MULTIPOINT ((1.1 0.1), (0.2 1.4))")));
  
          // Polygon is fully contained within the circle
          assertTrue(circle.intersects(parseWkt("POLYGON ((-0.1 0.1, 0 0.4, 0.1 0.2, -0.1 0.1))")));
          assertTrue(circle.intersects(parseWkt("POLYGON ((-0.5 0, 0 0.5, 0.5 0, -0.5 0))")));
          // Polygon boundary intersects the circle
          assertTrue(circle.intersects(parseWkt("POLYGON ((0 0, 1 1, 1 0, 0 0))")));
          // Polygon contains the circle
          assertTrue(circle.intersects(parseWkt("POLYGON ((-1 -1, -1 1, 1 1, 1.5 0.5, 1 -1, -1 -1))")));
          // Polygon with a hole intersects the circle, but doesn't contain circle center
          assertTrue(circle.intersects(parseWkt("POLYGON ((-1 -1, -1 1, 1 1, 1 -1, -1 -1), " +
                  "(-0.1 -0.1, 0.1 -0.1, 0.1 0.1, -0.1 0.1, -0.1 -0.1))")));
  
          // No intersection
          assertFalse(circle.intersects(parseWkt("POLYGON ((0.4 0.4, 0.4 0.45, 0.45 0.45, 0.45 0.4, 0.4 0.4))")));
          assertFalse(circle.intersects(parseWkt("POLYGON ((-1 0, -1 1, 0 1, 0 2, -1 2, -1 0))")));
          assertFalse(circle.intersects(parseWkt("POLYGON ((-1 -1, -1 1, 1 1, 1 -1, -1 -1), " +
                  "(-0.6 -0.6, 0.6 -0.6, 0.6 0.6, -0.6 0.6, -0.6 -0.6))")));
  
          assertTrue(circle.intersects(parseWkt("MULTIPOLYGON (((-0.1 0.1, 0 0.4, 0.1 0.2, -0.1 0.1)), " +
                  "((-0.5 0, 0 0.5, 0.5 0, -0.5 0)))")));
          assertTrue(circle.intersects(parseWkt("MULTIPOLYGON (((-0.1 0.1, 0 0.4, 0.1 0.2, -0.1 0.1)), " +
                  "((-1 0, -1 1, 0 1, 0 2, -1 2, -1 0)))")));
          assertFalse(circle.intersects(parseWkt("MULTIPOLYGON (((0.4 0.4, 0.4 0.45, 0.45 0.45, 0.45 0.4, 0.4 0.4)), " +
                  "((-1 0, -1 1, 0 1, 0 2, -1 2, -1 0)))")));
  
          // Line intersects at 2 points
          assertTrue(circle.intersects(parseWkt("LINESTRING (-1 -1, 1 1)")));
          // Line intersects at one point
          assertTrue(circle.intersects(parseWkt("LINESTRING (-1 0.5, 1 0.5)")));
          // Line is fully within the circle
          assertTrue(circle.intersects(parseWkt("LINESTRING (0 0, 0.1 0.2)")));
  
          // No intersection
          assertFalse(circle.intersects(parseWkt("LINESTRING (0.4 0.4, 1 1)")));
          assertFalse(circle.intersects(parseWkt("LINESTRING (-0.4 -0.4, -2 -3.2)")));
          assertFalse(circle.intersects(parseWkt("LINESTRING (0.1 0.5, 1 0.5)")));
  
          assertTrue(circle.intersects(parseWkt("MULTILINESTRING ((-1 -1, 1 1), (-1 0.5, 1 0.5))")));
          assertTrue(circle.intersects(parseWkt("MULTILINESTRING ((-1 -1, 1 1), (0.4 0.4, 1 1))")));
          assertFalse(circle.intersects(parseWkt("MULTILINESTRING ((0.1 0.5, 1 0.5), (0.4 0.4, 1 1))")));
      }
test_case.class_method_signature: CircleTest.testIntersects()
test_case.full_signature: @Test public void testIntersects()
test_case.identifier: testIntersects
test_case.invocations: makePoint assertTrue intersects makePoint assertTrue intersects makePoint assertFalse intersects makePoint assertFalse intersects makePoint assertTrue intersects parseWkt assertTrue intersects parseWkt assertFalse intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertFalse intersects parseWkt assertFalse intersects parseWkt assertFalse intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertFalse intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertFalse intersects parseWkt assertFalse intersects parseWkt assertFalse intersects parseWkt assertTrue intersects parseWkt assertTrue intersects parseWkt assertFalse intersects parseWkt
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIntersects()
focal_class.declarator: centerGeometry
focal_class.modifier: private
focal_class.original_string: private Geometry centerGeometry;
focal_class.type: Geometry
focal_class.var_name: centerGeometry
focal_class.declarator: centerPoint
focal_class.modifier: private
focal_class.original_string: private Coordinate centerPoint;
focal_class.type: Coordinate
focal_class.var_name: centerPoint
focal_class.declarator: radius
focal_class.modifier: private
focal_class.original_string: private Double radius;
focal_class.type: Double
focal_class.var_name: radius
focal_class.declarator: MBR
focal_class.modifier: private
focal_class.original_string: private Envelope MBR;
focal_class.type: Envelope
focal_class.var_name: MBR
focal_class.file: core/src/main/java/org/datasyslab/geospark/geometryObjects/Circle.java
focal_class.identifier: Circle
focal_class.class_method_signature: Circle.getCenterGeometry()
focal_class.full_signature: public Geometry getCenterGeometry()
focal_class.identifier: getCenterGeometry
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Geometry
focal_class.signature: Geometry getCenterGeometry()
focal_class.class_method_signature: Circle.Circle(Geometry centerGeometry, Double givenRadius)
focal_class.full_signature: public  Circle(Geometry centerGeometry, Double givenRadius)
focal_class.identifier: Circle
focal_class.modifiers: public
focal_class.parameters: (Geometry centerGeometry, Double givenRadius)
focal_class.signature:  Circle(Geometry centerGeometry, Double givenRadius)
focal_class.class_method_signature: Circle.getCenterPoint()
focal_class.full_signature: public Coordinate getCenterPoint()
focal_class.identifier: getCenterPoint
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Coordinate
focal_class.signature: Coordinate getCenterPoint()
focal_class.class_method_signature: Circle.getRadius()
focal_class.full_signature: public Double getRadius()
focal_class.identifier: getRadius
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Double
focal_class.signature: Double getRadius()
focal_class.class_method_signature: Circle.setRadius(Double givenRadius)
focal_class.full_signature: public void setRadius(Double givenRadius)
focal_class.identifier: setRadius
focal_class.modifiers: public
focal_class.parameters: (Double givenRadius)
focal_class.return: void
focal_class.signature: void setRadius(Double givenRadius)
focal_class.class_method_signature: Circle.covers(Geometry other)
focal_class.full_signature: @Override public boolean covers(Geometry other)
focal_class.identifier: covers
focal_class.modifiers: @Override public
focal_class.parameters: (Geometry other)
focal_class.return: boolean
focal_class.signature: boolean covers(Geometry other)
focal_class.class_method_signature: Circle.covers(LineString lineString)
focal_class.full_signature: private boolean covers(LineString lineString)
focal_class.identifier: covers
focal_class.modifiers: private
focal_class.parameters: (LineString lineString)
focal_class.return: boolean
focal_class.signature: boolean covers(LineString lineString)
focal_class.class_method_signature: Circle.covers(Point point)
focal_class.full_signature: private boolean covers(Point point)
focal_class.identifier: covers
focal_class.modifiers: private
focal_class.parameters: (Point point)
focal_class.return: boolean
focal_class.signature: boolean covers(Point point)
focal_class.class_method_signature: Circle.intersects(Geometry other)
focal_class.full_signature: @Override public boolean intersects(Geometry other)
focal_class.identifier: intersects
focal_class.modifiers: @Override public
focal_class.parameters: (Geometry other)
focal_class.return: boolean
focal_class.signature: boolean intersects(Geometry other)
focal_class.class_method_signature: Circle.intersects(Polygon polygon)
focal_class.full_signature: private boolean intersects(Polygon polygon)
focal_class.identifier: intersects
focal_class.modifiers: private
focal_class.parameters: (Polygon polygon)
focal_class.return: boolean
focal_class.signature: boolean intersects(Polygon polygon)
focal_class.class_method_signature: Circle.intersects(LineString lineString)
focal_class.full_signature: private boolean intersects(LineString lineString)
focal_class.identifier: intersects
focal_class.modifiers: private
focal_class.parameters: (LineString lineString)
focal_class.return: boolean
focal_class.signature: boolean intersects(LineString lineString)
focal_class.class_method_signature: Circle.intersects(Point start, Point end)
focal_class.full_signature: private boolean intersects(Point start, Point end)
focal_class.identifier: intersects
focal_class.modifiers: private
focal_class.parameters: (Point start, Point end)
focal_class.return: boolean
focal_class.signature: boolean intersects(Point start, Point end)
focal_class.class_method_signature: Circle.getGeometryType()
focal_class.full_signature: @Override public String getGeometryType()
focal_class.identifier: getGeometryType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGeometryType()
focal_class.class_method_signature: Circle.getCoordinate()
focal_class.full_signature: @Override public Coordinate getCoordinate()
focal_class.identifier: getCoordinate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Coordinate
focal_class.signature: Coordinate getCoordinate()
focal_class.class_method_signature: Circle.getCoordinates()
focal_class.full_signature: @Override public Coordinate[] getCoordinates()
focal_class.identifier: getCoordinates
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Coordinate[]
focal_class.signature: Coordinate[] getCoordinates()
focal_class.class_method_signature: Circle.getNumPoints()
focal_class.full_signature: @Override public int getNumPoints()
focal_class.identifier: getNumPoints
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumPoints()
focal_class.class_method_signature: Circle.isEmpty()
focal_class.full_signature: @Override public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: Circle.getDimension()
focal_class.full_signature: @Override public int getDimension()
focal_class.identifier: getDimension
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getDimension()
focal_class.class_method_signature: Circle.getBoundary()
focal_class.full_signature: @Override public Geometry getBoundary()
focal_class.identifier: getBoundary
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Geometry
focal_class.signature: Geometry getBoundary()
focal_class.class_method_signature: Circle.getBoundaryDimension()
focal_class.full_signature: @Override public int getBoundaryDimension()
focal_class.identifier: getBoundaryDimension
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBoundaryDimension()
focal_class.class_method_signature: Circle.reverse()
focal_class.full_signature: @Override public Geometry reverse()
focal_class.identifier: reverse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Geometry
focal_class.signature: Geometry reverse()
focal_class.class_method_signature: Circle.clone()
focal_class.full_signature: @Override public Object clone()
focal_class.identifier: clone
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object clone()
focal_class.class_method_signature: Circle.equalsExact(Geometry g, double tolerance)
focal_class.full_signature: @Override public boolean equalsExact(Geometry g, double tolerance)
focal_class.identifier: equalsExact
focal_class.modifiers: @Override public
focal_class.parameters: (Geometry g, double tolerance)
focal_class.return: boolean
focal_class.signature: boolean equalsExact(Geometry g, double tolerance)
focal_class.class_method_signature: Circle.apply(CoordinateFilter filter)
focal_class.full_signature: @Override public void apply(CoordinateFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (CoordinateFilter filter)
focal_class.return: void
focal_class.signature: void apply(CoordinateFilter filter)
focal_class.class_method_signature: Circle.apply(CoordinateSequenceFilter filter)
focal_class.full_signature: @Override public void apply(CoordinateSequenceFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (CoordinateSequenceFilter filter)
focal_class.return: void
focal_class.signature: void apply(CoordinateSequenceFilter filter)
focal_class.class_method_signature: Circle.apply(GeometryFilter filter)
focal_class.full_signature: @Override public void apply(GeometryFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (GeometryFilter filter)
focal_class.return: void
focal_class.signature: void apply(GeometryFilter filter)
focal_class.class_method_signature: Circle.apply(GeometryComponentFilter filter)
focal_class.full_signature: @Override public void apply(GeometryComponentFilter filter)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (GeometryComponentFilter filter)
focal_class.return: void
focal_class.signature: void apply(GeometryComponentFilter filter)
focal_class.class_method_signature: Circle.normalize()
focal_class.full_signature: @Override public void normalize()
focal_class.identifier: normalize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void normalize()
focal_class.class_method_signature: Circle.computeEnvelopeInternal()
focal_class.full_signature: @Override protected Envelope computeEnvelopeInternal()
focal_class.identifier: computeEnvelopeInternal
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Envelope
focal_class.signature: Envelope computeEnvelopeInternal()
focal_class.class_method_signature: Circle.compareToSameClass(Object other)
focal_class.full_signature: @Override protected int compareToSameClass(Object other)
focal_class.identifier: compareToSameClass
focal_class.modifiers: @Override protected
focal_class.parameters: (Object other)
focal_class.return: int
focal_class.signature: int compareToSameClass(Object other)
focal_class.class_method_signature: Circle.compareToSameClass(Object other, CoordinateSequenceComparator comp)
focal_class.full_signature: @Override protected int compareToSameClass(Object other, CoordinateSequenceComparator comp)
focal_class.identifier: compareToSameClass
focal_class.modifiers: @Override protected
focal_class.parameters: (Object other, CoordinateSequenceComparator comp)
focal_class.return: int
focal_class.signature: int compareToSameClass(Object other, CoordinateSequenceComparator comp)
focal_class.class_method_signature: Circle.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends Geometry
focal_method.body: @Override
      public boolean intersects(Geometry other)
      {
          // short-circuit test
          Envelope otherEnvelope = other.getEnvelopeInternal();
          if (!getEnvelopeInternal().intersects(otherEnvelope)) {
              return false;
          }
  
          if (other instanceof Point) {
              return covers((Point) other);
          }
  
          if (other instanceof LineString) {
              return intersects((LineString) other);
          }
  
          if (other instanceof Polygon) {
              return intersects((Polygon) other);
          }
  
          if (other instanceof GeometryCollection) {
              GeometryCollection collection = (GeometryCollection) other;
              for (int i = 0; i < collection.getNumGeometries(); i++) {
                  if (intersects(collection.getGeometryN(i))) {
                      return true;
                  }
              }
              return false;
          }
  
          throw new IllegalArgumentException("Circle.intersects() doesn't support geometry type " +
                  other.getGeometryType());
      }
focal_method.class_method_signature: Circle.intersects(Geometry other)
focal_method.full_signature: @Override public boolean intersects(Geometry other)
focal_method.identifier: intersects
focal_method.invocations: getEnvelopeInternal intersects getEnvelopeInternal covers intersects intersects getNumGeometries intersects getGeometryN getGeometryType
focal_method.modifiers: @Override public
focal_method.parameters: (Geometry other)
focal_method.return: boolean
focal_method.signature: boolean intersects(Geometry other)