Package org.locationtech.jts.geom.prep
Class PreparedPoint
- java.lang.Object
-
- org.locationtech.jts.geom.prep.BasicPreparedGeometry
-
- org.locationtech.jts.geom.prep.PreparedPoint
-
- All Implemented Interfaces:
PreparedGeometry
public class PreparedPoint extends BasicPreparedGeometry
A prepared version forPuntalgeometries.Instances of this class are thread-safe.
-
-
Constructor Summary
Constructors Constructor Description PreparedPoint(Puntal point)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanintersects(Geometry g)Tests whether this point intersects aGeometry.-
Methods inherited from class org.locationtech.jts.geom.prep.BasicPreparedGeometry
contains, containsProperly, coveredBy, covers, crosses, disjoint, envelopeCovers, envelopesIntersect, getGeometry, getRepresentativePoints, isAnyTargetComponentInTest, overlaps, toString, touches, within
-
-
-
-
Constructor Detail
-
PreparedPoint
public PreparedPoint(Puntal point)
-
-
Method Detail
-
intersects
public boolean intersects(Geometry g)
Tests whether this point intersects aGeometry.The optimization here is that computing topology for the test geometry is avoided. This can be significant for large geometries.
- Specified by:
intersectsin interfacePreparedGeometry- Overrides:
intersectsin classBasicPreparedGeometry- Parameters:
g- the Geometry to test- Returns:
- true if this Geometry intersects the given Geometry
- See Also:
Geometry.intersects(Geometry)
-
-