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, removeFalsePositivespublic boolean pointInPolygon(org.springframework.data.geo.Point p,
org.springframework.data.geo.Polygon polygon)
PointInShapeEvaluatorPoint is contained by a Polygon.pointInPolygon in class PointInShapeEvaluatorp - 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)
PointInShapeEvaluatorPoint 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 PointInShapeEvaluatorp - 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)
PointInShapeEvaluatorPoint is contained by a Circle.pointInCircle in class PointInShapeEvaluatorp - 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)
PointInShapeEvaluatorPoint is contained by a Circle represented by its center Point and
Distance radius.pointInCircle in class PointInShapeEvaluatorp - 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–2023 Pivotal Software, Inc.. All rights reserved.