|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.core.datatypes.MTBPolygon2D_GeoPolygonsWrapper
public class MTBPolygon2D_GeoPolygonsWrapper
Wrapper class for C2DPolygon functions from GeoPolygons library.
Webpage: GeoLib Homepage
Constructor Summary | |
---|---|
MTBPolygon2D_GeoPolygonsWrapper()
|
Method Summary | |
---|---|
protected static MTBPolygon2D |
C2DtoMTB(uk.co.geolib.geopolygons.C2DPolygon cPoly)
Converts a C2D polygon to the MiToBo polygon data type. |
protected static boolean |
containsPoint(MTBPolygon2D p,
double x,
double y)
Checks if a point lies inside of the polygon. |
protected static boolean |
isClockwiseOriented(MTBPolygon2D p)
Checks if polygon is oriented counter-clockwise. |
protected static boolean |
isConvex(MTBPolygon2D p)
Checks if a polygon is convex. |
protected static boolean |
isCounterClockwiseOriented(MTBPolygon2D p)
Checks if polygon is oriented counter-clockwise. |
protected static boolean |
isSimple(MTBPolygon2D p)
Checks if a polygon is simple. |
protected static MTBPolygon2D |
makePolySimple(MTBPolygon2D p)
Simplifies the given polygon. |
protected static uk.co.geolib.geopolygons.C2DPolygon |
MTBtoC2D(MTBPolygon2D mPoly)
Converts a MiToBo polygon to C2D data type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MTBPolygon2D_GeoPolygonsWrapper()
Method Detail |
---|
protected static boolean isSimple(MTBPolygon2D p)
p
- Input polygon.
protected static boolean isConvex(MTBPolygon2D p)
p
- Input polygon.
protected static boolean isCounterClockwiseOriented(MTBPolygon2D p)
p
- Input polygon.
protected static boolean isClockwiseOriented(MTBPolygon2D p)
p
- Input polygon.
protected static MTBPolygon2D makePolySimple(MTBPolygon2D p)
p
- Input polygon.
protected static boolean containsPoint(MTBPolygon2D p, double x, double y)
Note that the boundary does not belong to the interior.
p
- Input polygon.x
- x coordinate of point to check.y
- y coordinate of point to check.
protected static uk.co.geolib.geopolygons.C2DPolygon MTBtoC2D(MTBPolygon2D mPoly)
Note that the result polygon is always in clockwise ordering, independent of how the input polygon was sorted.
mPoly
- Input MiToBo polygon.
protected static MTBPolygon2D C2DtoMTB(uk.co.geolib.geopolygons.C2DPolygon cPoly)
Note that the result polygon is always in clockwise ordering.
mPoly
- Input C2D polygon.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |