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(Point p,
Circle c)
|
boolean |
pointInCircle(Point p,
Point center,
Distance radiusDistance)
|
boolean |
pointInPolygon(Point p,
Point... points)
|
boolean |
pointInPolygon(Point p,
Polygon polygon)
|
removeFalsePositives, removeFalsePositives, removeFalsePositives, removeFalsePositivespublic boolean pointInPolygon(Point p, Polygon polygon)
PointInShapeEvaluatorpointInPolygon in class PointInShapeEvaluatorp - the point to test.polygon - the polygon we want the point to be in.public boolean pointInPolygon(Point p, 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(Point p, Circle c)
PointInShapeEvaluatorpointInCircle in class PointInShapeEvaluatorp - the point to test.c - the Circle we want the point to be in.public boolean pointInCircle(Point p, Point center, Distance radiusDistance)
PointInShapeEvaluatorpointInCircle 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–2022 Pivotal Software, Inc.. All rights reserved.