georegression.geometry
Class UtilPolygons2D_I32
- java.lang.Object
-
- georegression.geometry.UtilPolygons2D_I32
-
public class UtilPolygons2D_I32 extends java.lang.ObjectVarious functions related to polygons.
-
-
Constructor Summary
Constructors Constructor and Description UtilPolygons2D_I32()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidbounding(java.util.List<Point2D_I32> points, Rectangle2D_I32 rectangle)Finds the minimum area bounding rectangle which is aligned to the x and y axis around the list of points.static voidbounding(Polygon2D_I32 quad, Rectangle2D_I32 rectangle)Finds the minimum area bounding rectangle which is aligned to the x and y axis around the polygon.static booleanisCCW(java.util.List<Point2D_I32> polygon)Returns true if the polygon is ordered in a counter-clockwise order.
-
-
-
Method Detail
-
bounding
public static void bounding(java.util.List<Point2D_I32> points, Rectangle2D_I32 rectangle)
Finds the minimum area bounding rectangle which is aligned to the x and y axis around the list of points. Note (x0,y0) is inclusive and (x1,y1) is exclusive.- Parameters:
points- (Input) Quadrilateralrectangle- (Output) Minimum area rectangle
-
bounding
public static void bounding(Polygon2D_I32 quad, Rectangle2D_I32 rectangle)
Finds the minimum area bounding rectangle which is aligned to the x and y axis around the polygon. Note (x0,y0) is inclusive and (x1,y1) is exclusive.- Parameters:
quad- (Input) Quadrilateralrectangle- (Output) Minimum area rectangle
-
isCCW
public static boolean isCCW(java.util.List<Point2D_I32> polygon)
Returns true if the polygon is ordered in a counter-clockwise order. This is done by summing up the interior angles.- Parameters:
polygon- List of ordered points which define a polygon- Returns:
- true if CCW and false if CW
-
-
DataMelt 3.0 © DataMelt by jWork.ORG