public class AwtPointInShapeEvaluator extends PointInShapeEvaluator
PointInShapeEvaluator
implementation based on the JDK's java.awt.geom classes.Constructor and Description |
---|
AwtPointInShapeEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
pointInCircle(org.springframework.data.geo.Point p,
org.springframework.data.geo.Circle c)
Determine if a
Point is contained by a Circle . |
boolean |
pointInCircle(org.springframework.data.geo.Point p,
org.springframework.data.geo.Point center,
org.springframework.data.geo.Distance radiusDistance)
Determine if a
Point is contained by a Circle represented
by its center Point and Distance radius . |
boolean |
pointInPolygon(org.springframework.data.geo.Point p,
org.springframework.data.geo.Point... points)
Determine if a
Point is contained by a polygon represented
as an array of points . |
boolean |
pointInPolygon(org.springframework.data.geo.Point p,
org.springframework.data.geo.Polygon polygon)
Determine if a
Point is contained by a Polygon . |
removeFalsePositives, removeFalsePositives, removeFalsePositives, removeFalsePositives
public boolean pointInPolygon(org.springframework.data.geo.Point p, org.springframework.data.geo.Polygon polygon)
PointInShapeEvaluator
Point
is contained by a Polygon
.pointInPolygon
in class PointInShapeEvaluator
p
- the point to test.polygon
- the polygon we want the point to be in.public boolean pointInPolygon(org.springframework.data.geo.Point p, org.springframework.data.geo.Point... points)
PointInShapeEvaluator
Point
is contained by a polygon represented
as an array of points
.
The points are not required to form a closed shape, but can (by having the
first and last points be the same).pointInPolygon
in class PointInShapeEvaluator
p
- the point to test.points
- the Point[] representation of the polygon we want the point to be in.public boolean pointInCircle(org.springframework.data.geo.Point p, org.springframework.data.geo.Circle c)
PointInShapeEvaluator
Point
is contained by a Circle
.pointInCircle
in class PointInShapeEvaluator
p
- the point to test.c
- the Circle we want the point to be in.public boolean pointInCircle(org.springframework.data.geo.Point p, org.springframework.data.geo.Point center, org.springframework.data.geo.Distance radiusDistance)
PointInShapeEvaluator
Point
is contained by a Circle
represented
by its center Point
and Distance radius
.pointInCircle
in class PointInShapeEvaluator
p
- the point to test.center
- the center Point of the Circle we want the point to be in.radiusDistance
- the Distance radius of the Circle we want the point to be in.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.