Uses of Class
georegression.struct.shapes.Polygon2D_F32
Packages that use Polygon2D_F32
Package
Description
-
Uses of Polygon2D_F32 in georegression.fitting.polygon
Methods in georegression.fitting.polygon that return Polygon2D_F32Modifier and TypeMethodDescriptionstatic Polygon2D_F32FitPolygon2D_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 ).Methods in georegression.fitting.polygon with parameters of type Polygon2D_F32Modifier and TypeMethodDescriptionstatic Polygon2D_F32FitPolygon2D_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 ).voidConvexHullAndrewMonotone_F32.process(FastAccess<Point2D_F32> points, Polygon2D_F32 output) Computes the convex hull.voidConvexHullGrahamScan_F32.process(FastAccess<Point2D_F32> points, Polygon2D_F32 output) Fits a convex hull to the provided set of points.voidFitConvexHull_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
Methods in georegression.geometry with parameters of type Polygon2D_F32Modifier and TypeMethodDescriptionstatic floatUtilPolygons2D_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_I32UtilPolygons2D_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 voidUtilPolygons2D_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 voidUtilPolygons2D_F32.convert(Polygon2D_F32 input, Quadrilateral_F32 output) Converts a polygon into a quadrilateralstatic voidUtilPolygons2D_F32.convert(Quadrilateral_F32 input, Polygon2D_F32 output) Converts a quadrilateral into a polygonstatic voidUtilPolygons2D_F32.convert(Rectangle2D_F32 input, Polygon2D_F32 output) Converts a rectangle into a polygonstatic voidUtilPolygons2D_F32.flip(Polygon2D_F32 a) Flips the order of points inside the polygon.static booleanUtilPolygons2D_F32.hasAdjacentDuplicates(Polygon2D_F32 polygon, float tol) Remove a point if it's identical to a neighborstatic booleanUtilPolygons2D_F32.isCCW(Polygon2D_F32 polygon) static booleanUtilPolygons2D_F32.isConvex(Polygon2D_F32 poly) Determines if the polugon is convex or concave.static booleanUtilPolygons2D_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 booleanUtilPolygons2D_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 booleanUtilPolygons2D_F32.isSelfIntersectingBrute(Polygon2D_F32 p, float tol) Brute force algorithm which checks for self intersection.static PolygonInfoUtilPolygons2D_F32.isSimple(Polygon2D_F32 p, @Nullable PolygonInfo result, float tol) Checks to see if a polygon is simple or not, see [1].static voidUtilShape3D_F32.polygon2Dto3D(Polygon2D_F32 polygon2D, Se3_F32 polyToWorld, DogArray<Point3D_F32> output) Converts a 2D polygon into a 3D polygon.static voidUtilPolygons2D_F32.removeAdjacentDuplicates(Polygon2D_F32 polygon, float tol) Remove a point if it's identical to a neighborstatic voidUtilPolygons2D_F32.removeAlmostParallel(Polygon2D_F32 polygon, float tol) Removes a node from a polygon if the two lines its attached two are almost parallelstatic voidUtilPolygons2D_F32.shiftDown(Polygon2D_F32 a) Shifts all the vertexes in the polygon up one element.static voidUtilPolygons2D_F32.shiftUp(Polygon2D_F32 a) Shifts all the vertexes in the polygon up one element.static voidUtilPolygons2D_F32.triangulate(Polygon2D_F32 p, DogArray<ThreeIndexes> triangles) Triangulates the simple polygon in O(N^2).static voidUtilPolygons2D_F32.vertexAverage(Polygon2D_F32 input, Point2D_F32 average) Computes the average of all the vertexes -
Uses of Polygon2D_F32 in georegression.geometry.polygon
Methods in georegression.geometry.polygon with parameters of type Polygon2D_F32Modifier and TypeMethodDescriptionfloatAreaIntersectionPolygon2D_F32.computeArea(Polygon2D_F32 a, Polygon2D_F32 b) Computes the area of the intersection between the two polygons.voidTriangulateSimpleRemoveEars_F32.process(Polygon2D_F32 input, DogArray<ThreeIndexes> output) Converts the polygon into a set of triangles. -
Uses of Polygon2D_F32 in georegression.metric
Methods in georegression.metric with parameters of type Polygon2D_F32Modifier and TypeMethodDescriptionstatic booleanIntersection2D_F32.containsConcave(Polygon2D_F32 polygon, Point2D_F32 pt) Checks to see if the point is contained inside the concave polygon.static booleanIntersection2D_F32.containsConvex(Polygon2D_F32 polygon, Point2D_F32 pt) Checks to see if the point is contained inside the convex polygon.static booleanIntersection2D_F32.containsConvex2(Polygon2D_F32 polygon, float x, float y) True if the convex polygon contains the point.static floatDistance2D_F32.distance(Polygon2D_F32 poly, Point2D_F32 p) Returns the Euclidean distance of the closest point on the Polygon to the provided point.static floatDistance2D_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 floatIntersection2D_F32.intersectionArea(Polygon2D_F32 a, Polygon2D_F32 b) Finds the area of the intersection of two simple polygons.static floatArea2D_F32.polygonSimple(Polygon2D_F32 poly) Area of a simple polygon.static floatDistance2D_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
Methods in georegression.struct.shapes that return Polygon2D_F32Modifier and TypeMethodDescriptionPolygon2D_F32.copy()Polygon2D_F32.flip(@Nullable Polygon2D_F32 storage) Creates a copy of 'this' and flips itPolygon2D_F32.setTo(Polygon2D_F32 orig) Methods in georegression.struct.shapes with parameters of type Polygon2D_F32Modifier and TypeMethodDescriptionPolygon2D_F32.flip(@Nullable Polygon2D_F32 storage) Creates a copy of 'this' and flips itbooleanPolygon2D_F32.isEquivalent(Polygon2D_F32 a, float tol) booleanPolygon2D_F32.isIdentical(Polygon2D_F32 a, float tol) Polygon2D_F32.setTo(Polygon2D_F32 orig) Constructors in georegression.struct.shapes with parameters of type Polygon2D_F32