Uses of Class
georegression.struct.shapes.Polygon2D_F64
Package
Description
-
Uses of Polygon2D_F64 in georegression.fitting.polygon
Modifier and TypeMethodDescriptionstatic Polygon2D_F64
FitPolygon2D_F64.convexHull
(List<Point2D_F64> points, @Nullable Polygon2D_F64 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_F64
FitPolygon2D_F64.convexHull
(List<Point2D_F64> points, @Nullable Polygon2D_F64 output) Finds the convex hull of the set of points using an algorithm with a runtime of O( n log n ).void
ConvexHullAndrewMonotone_F64.process
(FastAccess<Point2D_F64> points, Polygon2D_F64 output) Computes the convex hull.void
ConvexHullGrahamScan_F64.process
(FastAccess<Point2D_F64> points, Polygon2D_F64 output) Fits a convex hull to the provided set of points.void
FitConvexHull_F64.process
(FastAccess<Point2D_F64> points, Polygon2D_F64 output) Fits a convex hull to the provided set of points. -
Uses of Polygon2D_F64 in georegression.geometry
Modifier and TypeMethodDescriptionstatic double
UtilPolygons2D_F64.averageOfClosestPointError
(Polygon2D_F64 model, Polygon2D_F64 target, int numberOfSamples) Compute the error as a function of the distance between the model and target.static Rectangle2D_I32
UtilPolygons2D_F64.bounding
(Polygon2D_F64 polygon, @Nullable Rectangle2D_I32 aabb) Finds the minimum area bounding rectangle around the quadrilateral that is aligned with coordinate system axises.static void
UtilPolygons2D_F64.bounding
(Polygon2D_F64 polygon, Rectangle2D_F64 rectangle) Finds the minimum area bounding rectangle around the quadrilateral that is aligned with coordinate system axises.static void
UtilPolygons2D_F64.convert
(Polygon2D_F64 input, Quadrilateral_F64 output) Converts a polygon into a quadrilateralstatic void
UtilPolygons2D_F64.convert
(Quadrilateral_F64 input, Polygon2D_F64 output) Converts a quadrilateral into a polygonstatic void
UtilPolygons2D_F64.convert
(Rectangle2D_F64 input, Polygon2D_F64 output) Converts a rectangle into a polygonstatic void
UtilPolygons2D_F64.flip
(Polygon2D_F64 a) Flips the order of points inside the polygon.static boolean
UtilPolygons2D_F64.hasAdjacentDuplicates
(Polygon2D_F64 polygon, double tol) Remove a point if it's identical to a neighborstatic boolean
UtilPolygons2D_F64.isCCW
(Polygon2D_F64 polygon) static boolean
UtilPolygons2D_F64.isConvex
(Polygon2D_F64 poly) Determines if the polugon is convex or concave.static boolean
UtilPolygons2D_F64.isEquivalent
(Polygon2D_F64 a, Polygon2D_F64 b, double 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_F64.isIdentical
(Polygon2D_F64 a, Polygon2D_F64 b, double tol) Checks to see if the vertexes of the two polygon's are the same up to the specified tolerancestatic boolean
UtilPolygons2D_F64.isSelfIntersectingBrute
(Polygon2D_F64 p, double tol) Brute force algorithm which checks for self intersection.static PolygonInfo
UtilPolygons2D_F64.isSimple
(Polygon2D_F64 p, @Nullable PolygonInfo result, double tol) Checks to see if a polygon is simple or not, see [1].static void
UtilShape3D_F64.polygon2Dto3D
(Polygon2D_F64 polygon2D, Se3_F64 polyToWorld, DogArray<Point3D_F64> output) Converts a 2D polygon into a 3D polygon.static void
UtilPolygons2D_F64.removeAdjacentDuplicates
(Polygon2D_F64 polygon, double tol) Remove a point if it's identical to a neighborstatic void
UtilPolygons2D_F64.removeAlmostParallel
(Polygon2D_F64 polygon, double tol) Removes a node from a polygon if the two lines its attached two are almost parallelstatic void
UtilPolygons2D_F64.shiftDown
(Polygon2D_F64 a) Shifts all the vertexes in the polygon up one element.static void
UtilPolygons2D_F64.shiftUp
(Polygon2D_F64 a) Shifts all the vertexes in the polygon up one element.static void
UtilPolygons2D_F64.triangulate
(Polygon2D_F64 p, DogArray<ThreeIndexes> triangles) Triangulates the simple polygon in O(N^2).static void
UtilPolygons2D_F64.vertexAverage
(Polygon2D_F64 input, Point2D_F64 average) Computes the average of all the vertexes -
Uses of Polygon2D_F64 in georegression.geometry.polygon
Modifier and TypeMethodDescriptiondouble
AreaIntersectionPolygon2D_F64.computeArea
(Polygon2D_F64 a, Polygon2D_F64 b) Computes the area of the intersection between the two polygons.void
TriangulateSimpleRemoveEars_F64.process
(Polygon2D_F64 input, DogArray<ThreeIndexes> output) Converts the polygon into a set of triangles. -
Uses of Polygon2D_F64 in georegression.metric
Modifier and TypeMethodDescriptionstatic boolean
Intersection2D_F64.containsConcave
(Polygon2D_F64 polygon, Point2D_F64 pt) Checks to see if the point is contained inside the concave polygon.static boolean
Intersection2D_F64.containsConvex
(Polygon2D_F64 polygon, Point2D_F64 pt) Checks to see if the point is contained inside the convex polygon.static boolean
Intersection2D_F64.containsConvex2
(Polygon2D_F64 polygon, double x, double y) True if the convex polygon contains the point.static double
Distance2D_F64.distance
(Polygon2D_F64 poly, Point2D_F64 p) Returns the Euclidean distance of the closest point on the Polygon to the provided point.static double
Distance2D_F64.distanceSq
(Polygon2D_F64 poly, Point2D_F64 p, @Nullable LineSegment2D_F64 storage) Returns the Euclidean distance squared of the closest point on the Polygon to the provided point.static double
Intersection2D_F64.intersectionArea
(Polygon2D_F64 a, Polygon2D_F64 b) Finds the area of the intersection of two simple polygons.static double
Area2D_F64.polygonSimple
(Polygon2D_F64 poly) Area of a simple polygon.static double
Distance2D_F64.scoreIoU
(Polygon2D_F64 a, Polygon2D_F64 b, @Nullable AreaIntersectionPolygon2D_F64 computeArea) Returns the Intersection Over Union (IoU) score for two simple polygon -
Uses of Polygon2D_F64 in georegression.struct.shapes
Modifier and TypeMethodDescriptionPolygon2D_F64.copy()
Polygon2D_F64.flip
(@Nullable Polygon2D_F64 storage) Creates a copy of 'this' and flips itPolygon2D_F64.setTo
(Polygon2D_F64 orig) Modifier and TypeMethodDescriptionPolygon2D_F64.flip
(@Nullable Polygon2D_F64 storage) Creates a copy of 'this' and flips itboolean
Polygon2D_F64.isEquivalent
(Polygon2D_F64 a, double tol) boolean
Polygon2D_F64.isIdentical
(Polygon2D_F64 a, double tol) Polygon2D_F64.setTo
(Polygon2D_F64 orig)