|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.core.datatypes.Polygon2D_Cgal
public class Polygon2D_Cgal
Java Native Interface wrapper class for 2D polygons to include CGAL library methods.
Constructor Summary | |
---|---|
Polygon2D_Cgal()
|
Method Summary | |
---|---|
boolean |
cgal_isClockwiseOriented(double[] xs,
double[] ys)
|
boolean |
cgal_isConvex(double[] xs,
double[] ys)
|
boolean |
cgal_isCounterclockwiseOriented(double[] xs,
double[] ys)
|
boolean |
cgal_isSimple(double[] xs,
double[] ys)
Checks if a polygon is simple. |
double[] |
cgal_makePolySimple(double[] xs,
double[] ys)
Simplifies the given polygon. |
int |
cgal_orientation(double[] xs,
double[] ys,
double[] pt)
|
double |
cgal_signedArea(double[] xs,
double[] ys)
Calculates the signed area of a polygon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Polygon2D_Cgal()
Method Detail |
---|
public boolean cgal_isClockwiseOriented(double[] xs, double[] ys)
xs
- List of point x coordinates.ys
- List of point y coordinates.
public boolean cgal_isConvex(double[] xs, double[] ys)
xs
- List of point x coordinates.ys
- List of point y coordinates.
public boolean cgal_isCounterclockwiseOriented(double[] xs, double[] ys)
xs
- List of point x coordinates.ys
- List of point y coordinates.
public boolean cgal_isSimple(double[] xs, double[] ys)
xs
- List of point x coordinates.ys
- List of point y coordinates.
public double[] cgal_makePolySimple(double[] xs, double[] ys)
xs
- List of point x coordinates.ys
- List of point y coordinates.
public int cgal_orientation(double[] xs, double[] ys, double[] pt)
xs
- List of point x coordinates.ys
- List of point y coordinates.pt
- Point to check.
public double cgal_signedArea(double[] xs, double[] ys)
The sign is positive for counter-clockwise polygons, negative for clockwise polygons. If the polygon is not simple, the area is not well defined
xs
- List of point x coordinates.ys
- List of point y coordinates.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |