Uses of Class
georegression.struct.shapes.Polygon2D_F32
Package
Description
-
Uses of Polygon2D_F32 in georegression.fitting.polygon
Modifier and TypeMethodDescriptionstatic Polygon2D_F32
FitPolygon2D_F32.convexHull
(List<Point2D_F32> points, @Nullable Polygon2D_F32 output) Finds the convex hull of the set of points using an algorithm with a runtime of O( n log n ).Modifier and TypeMethodDescriptionstatic Polygon2D_F32
FitPolygon2D_F32.convexHull
(List<Point2D_F32> points, @Nullable Polygon2D_F32 output) Finds the convex hull of the set of points using an algorithm with a runtime of O( n log n ).void
ConvexHullAndrewMonotone_F32.process
(FastAccess<Point2D_F32> points, Polygon2D_F32 output) Computes the convex hull.void
ConvexHullGrahamScan_F32.process
(FastAccess<Point2D_F32> points, Polygon2D_F32 output) Fits a convex hull to the provided set of points.void
FitConvexHull_F32.process
(FastAccess<Point2D_F32> points, Polygon2D_F32 output) Fits a convex hull to the provided set of points. -
Uses of Polygon2D_F32 in georegression.geometry
Modifier and TypeMethodDescriptionstatic float
UtilPolygons2D_F32.averageOfClosestPointError
(Polygon2D_F32 model, Polygon2D_F32 target, int numberOfSamples) Compute the error as a function of the distance between the model and target.static Rectangle2D_I32
UtilPolygons2D_F32.bounding
(Polygon2D_F32 polygon, @Nullable Rectangle2D_I32 aabb) Finds the minimum area bounding rectangle around the quadrilateral that is aligned with coordinate system axises.static void
UtilPolygons2D_F32.bounding
(Polygon2D_F32 polygon, Rectangle2D_F32 rectangle) Finds the minimum area bounding rectangle around the quadrilateral that is aligned with coordinate system axises.static void
UtilPolygons2D_F32.convert
(Polygon2D_F32 input, Quadrilateral_F32 output) Converts a polygon into a quadrilateralstatic void
UtilPolygons2D_F32.convert
(Quadrilateral_F32 input, Polygon2D_F32 output) Converts a quadrilateral into a polygonstatic void
UtilPolygons2D_F32.convert
(Rectangle2D_F32 input, Polygon2D_F32 output) Converts a rectangle into a polygonstatic void
UtilPolygons2D_F32.flip
(Polygon2D_F32 a) Flips the order of points inside the polygon.static boolean
UtilPolygons2D_F32.hasAdjacentDuplicates
(Polygon2D_F32 polygon, float tol) Remove a point if it's identical to a neighborstatic boolean
UtilPolygons2D_F32.isCCW
(Polygon2D_F32 polygon) static boolean
UtilPolygons2D_F32.isConvex
(Polygon2D_F32 poly) Determines if the polugon is convex or concave.static boolean
UtilPolygons2D_F32.isEquivalent
(Polygon2D_F32 a, Polygon2D_F32 b, float tol) Checks to see if the vertexes of the two polygon's are the same up to the specified tolerance and allows for a shift in their orderstatic boolean
UtilPolygons2D_F32.isIdentical
(Polygon2D_F32 a, Polygon2D_F32 b, float tol) Checks to see if the vertexes of the two polygon's are the same up to the specified tolerancestatic boolean
UtilPolygons2D_F32.isSelfIntersectingBrute
(Polygon2D_F32 p, float tol) Brute force algorithm which checks for self intersection.static PolygonInfo
UtilPolygons2D_F32.isSimple
(Polygon2D_F32 p, @Nullable PolygonInfo result, float tol) Checks to see if a polygon is simple or not, see [1].static void
UtilShape3D_F32.polygon2Dto3D
(Polygon2D_F32 polygon2D, Se3_F32 polyToWorld, DogArray<Point3D_F32> output) Converts a 2D polygon into a 3D polygon.static void
UtilPolygons2D_F32.removeAdjacentDuplicates
(Polygon2D_F32 polygon, float tol) Remove a point if it's identical to a neighborstatic void
UtilPolygons2D_F32.removeAlmostParallel
(Polygon2D_F32 polygon, float tol) Removes a node from a polygon if the two lines its attached two are almost parallelstatic void
UtilPolygons2D_F32.shiftDown
(Polygon2D_F32 a) Shifts all the vertexes in the polygon up one element.static void
UtilPolygons2D_F32.shiftUp
(Polygon2D_F32 a) Shifts all the vertexes in the polygon up one element.static void
UtilPolygons2D_F32.triangulate
(Polygon2D_F32 p, DogArray<ThreeIndexes> triangles) Triangulates the simple polygon in O(N^2).static void
UtilPolygons2D_F32.vertexAverage
(Polygon2D_F32 input, Point2D_F32 average) Computes the average of all the vertexes -
Uses of Polygon2D_F32 in georegression.geometry.polygon
Modifier and TypeMethodDescriptionfloat
AreaIntersectionPolygon2D_F32.computeArea
(Polygon2D_F32 a, Polygon2D_F32 b) Computes the area of the intersection between the two polygons.void
TriangulateSimpleRemoveEars_F32.process
(Polygon2D_F32 input, DogArray<ThreeIndexes> output) Converts the polygon into a set of triangles. -
Uses of Polygon2D_F32 in georegression.metric
Modifier and TypeMethodDescriptionstatic boolean
Intersection2D_F32.containsConcave
(Polygon2D_F32 polygon, Point2D_F32 pt) Checks to see if the point is contained inside the concave polygon.static boolean
Intersection2D_F32.containsConvex
(Polygon2D_F32 polygon, Point2D_F32 pt) Checks to see if the point is contained inside the convex polygon.static boolean
Intersection2D_F32.containsConvex2
(Polygon2D_F32 polygon, float x, float y) True if the convex polygon contains the point.static float
Distance2D_F32.distance
(Polygon2D_F32 poly, Point2D_F32 p) Returns the Euclidean distance of the closest point on the Polygon to the provided point.static float
Distance2D_F32.distanceSq
(Polygon2D_F32 poly, Point2D_F32 p, @Nullable LineSegment2D_F32 storage) Returns the Euclidean distance squared of the closest point on the Polygon to the provided point.static float
Intersection2D_F32.intersectionArea
(Polygon2D_F32 a, Polygon2D_F32 b) Finds the area of the intersection of two simple polygons.static float
Area2D_F32.polygonSimple
(Polygon2D_F32 poly) Area of a simple polygon.static float
Distance2D_F32.scoreIoU
(Polygon2D_F32 a, Polygon2D_F32 b, @Nullable AreaIntersectionPolygon2D_F32 computeArea) Returns the Intersection Over Union (IoU) score for two simple polygon -
Uses of Polygon2D_F32 in georegression.struct.shapes
Modifier and TypeMethodDescriptionPolygon2D_F32.copy()
Polygon2D_F32.flip
(@Nullable Polygon2D_F32 storage) Creates a copy of 'this' and flips itPolygon2D_F32.setTo
(Polygon2D_F32 orig) Modifier and TypeMethodDescriptionPolygon2D_F32.flip
(@Nullable Polygon2D_F32 storage) Creates a copy of 'this' and flips itboolean
Polygon2D_F32.isEquivalent
(Polygon2D_F32 a, float tol) boolean
Polygon2D_F32.isIdentical
(Polygon2D_F32 a, float tol) Polygon2D_F32.setTo
(Polygon2D_F32 orig)