Uses of Class
georegression.struct.shapes.Polygon2D_F64
Packages that use Polygon2D_F64
Package
Description
-
Uses of Polygon2D_F64 in georegression.fitting.polygon
Methods in georegression.fitting.polygon that return Polygon2D_F64Modifier and TypeMethodDescriptionstatic Polygon2D_F64FitPolygon2D_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 ).Methods in georegression.fitting.polygon with parameters of type Polygon2D_F64Modifier and TypeMethodDescriptionstatic Polygon2D_F64FitPolygon2D_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 ).voidConvexHullAndrewMonotone_F64.process(FastAccess<Point2D_F64> points, Polygon2D_F64 output) Computes the convex hull.voidConvexHullGrahamScan_F64.process(FastAccess<Point2D_F64> points, Polygon2D_F64 output) Fits a convex hull to the provided set of points.voidFitConvexHull_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
Methods in georegression.geometry with parameters of type Polygon2D_F64Modifier and TypeMethodDescriptionstatic doubleUtilPolygons2D_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_I32UtilPolygons2D_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 voidUtilPolygons2D_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 voidUtilPolygons2D_F64.convert(Polygon2D_F64 input, Quadrilateral_F64 output) Converts a polygon into a quadrilateralstatic voidUtilPolygons2D_F64.convert(Quadrilateral_F64 input, Polygon2D_F64 output) Converts a quadrilateral into a polygonstatic voidUtilPolygons2D_F64.convert(Rectangle2D_F64 input, Polygon2D_F64 output) Converts a rectangle into a polygonstatic voidUtilPolygons2D_F64.flip(Polygon2D_F64 a) Flips the order of points inside the polygon.static booleanUtilPolygons2D_F64.hasAdjacentDuplicates(Polygon2D_F64 polygon, double tol) Remove a point if it's identical to a neighborstatic booleanUtilPolygons2D_F64.isCCW(Polygon2D_F64 polygon) static booleanUtilPolygons2D_F64.isConvex(Polygon2D_F64 poly) Determines if the polugon is convex or concave.static booleanUtilPolygons2D_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 booleanUtilPolygons2D_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 booleanUtilPolygons2D_F64.isSelfIntersectingBrute(Polygon2D_F64 p, double tol) Brute force algorithm which checks for self intersection.static PolygonInfoUtilPolygons2D_F64.isSimple(Polygon2D_F64 p, @Nullable PolygonInfo result, double tol) Checks to see if a polygon is simple or not, see [1].static voidUtilShape3D_F64.polygon2Dto3D(Polygon2D_F64 polygon2D, Se3_F64 polyToWorld, DogArray<Point3D_F64> output) Converts a 2D polygon into a 3D polygon.static voidUtilPolygons2D_F64.removeAdjacentDuplicates(Polygon2D_F64 polygon, double tol) Remove a point if it's identical to a neighborstatic voidUtilPolygons2D_F64.removeAlmostParallel(Polygon2D_F64 polygon, double tol) Removes a node from a polygon if the two lines its attached two are almost parallelstatic voidUtilPolygons2D_F64.shiftDown(Polygon2D_F64 a) Shifts all the vertexes in the polygon up one element.static voidUtilPolygons2D_F64.shiftUp(Polygon2D_F64 a) Shifts all the vertexes in the polygon up one element.static voidUtilPolygons2D_F64.triangulate(Polygon2D_F64 p, DogArray<ThreeIndexes> triangles) Triangulates the simple polygon in O(N^2).static voidUtilPolygons2D_F64.vertexAverage(Polygon2D_F64 input, Point2D_F64 average) Computes the average of all the vertexes -
Uses of Polygon2D_F64 in georegression.geometry.polygon
Methods in georegression.geometry.polygon with parameters of type Polygon2D_F64Modifier and TypeMethodDescriptiondoubleAreaIntersectionPolygon2D_F64.computeArea(Polygon2D_F64 a, Polygon2D_F64 b) Computes the area of the intersection between the two polygons.voidTriangulateSimpleRemoveEars_F64.process(Polygon2D_F64 input, DogArray<ThreeIndexes> output) Converts the polygon into a set of triangles. -
Uses of Polygon2D_F64 in georegression.metric
Methods in georegression.metric with parameters of type Polygon2D_F64Modifier and TypeMethodDescriptionstatic booleanIntersection2D_F64.containsConcave(Polygon2D_F64 polygon, Point2D_F64 pt) Checks to see if the point is contained inside the concave polygon.static booleanIntersection2D_F64.containsConvex(Polygon2D_F64 polygon, Point2D_F64 pt) Checks to see if the point is contained inside the convex polygon.static booleanIntersection2D_F64.containsConvex2(Polygon2D_F64 polygon, double x, double y) True if the convex polygon contains the point.static doubleDistance2D_F64.distance(Polygon2D_F64 poly, Point2D_F64 p) Returns the Euclidean distance of the closest point on the Polygon to the provided point.static doubleDistance2D_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 doubleIntersection2D_F64.intersectionArea(Polygon2D_F64 a, Polygon2D_F64 b) Finds the area of the intersection of two simple polygons.static doubleArea2D_F64.polygonSimple(Polygon2D_F64 poly) Area of a simple polygon.static doubleDistance2D_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
Methods in georegression.struct.shapes that return Polygon2D_F64Modifier and TypeMethodDescriptionPolygon2D_F64.copy()Polygon2D_F64.flip(@Nullable Polygon2D_F64 storage) Creates a copy of 'this' and flips itPolygon2D_F64.setTo(Polygon2D_F64 orig) Methods in georegression.struct.shapes with parameters of type Polygon2D_F64Modifier and TypeMethodDescriptionPolygon2D_F64.flip(@Nullable Polygon2D_F64 storage) Creates a copy of 'this' and flips itbooleanPolygon2D_F64.isEquivalent(Polygon2D_F64 a, double tol) booleanPolygon2D_F64.isIdentical(Polygon2D_F64 a, double tol) Polygon2D_F64.setTo(Polygon2D_F64 orig) Constructors in georegression.struct.shapes with parameters of type Polygon2D_F64