public abstract class Polygon2DUtils extends Object
| Constructor and Description |
|---|
Polygon2DUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Domain2D |
createBuffer(Polygon2D polygon,
double d) |
static Polygon2D |
union(Polygon2D polygon1,
Polygon2D polygon2) |
static int |
windingNumber(Collection<Point2D> vertices,
Point2D point)
Computes the winding number of the polygon.
|
public static final int windingNumber(Collection<Point2D> vertices, Point2D point)
vertices - the vertices of the polygonpoint - the reference pointCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.