public class PolygonProcessing extends Object
| Constructor and Description |
|---|
PolygonProcessing() |
| Modifier and Type | Method and Description |
|---|---|
static Polygon |
intersection(Polygon a,
Polygon b)
returns the intersection of two polygons a, b
|
static boolean |
isContained(Polygon internal,
Polygon external)
checks if polygon internal is contained inside the polygon external
|
static void |
main(String[] args)
used only for testing - Std out will not be used by this class when called by the container
|
static boolean |
overlaps(Polygon a,
Polygon b)
checks if a polygon a overlaps with a polygon b
|
static Polygon |
union(Polygon a,
Polygon b)
returns the union of two polygons a, b
|
public static Polygon intersection(Polygon a, Polygon b)
a - - polygon ab - - polygon bpublic static Polygon union(Polygon a, Polygon b)
a - - polygon ab - - polygon bpublic static boolean isContained(Polygon internal, Polygon external)
internal - - the internal polygonexternal - - the external polygonpublic static boolean overlaps(Polygon a, Polygon b)
a - - the a polygonb - - the b polygonpublic static void main(String[] args)
args - Copyright © 2014. All Rights Reserved.