Uses of Class
com.amalgamasimulation.geometry.Polygon
Packages that use Polygon
-
Uses of Polygon in com.amalgamasimulation.geometry
Methods in com.amalgamasimulation.geometry that return PolygonModifier and TypeMethodDescriptionstatic PolygonGeometryUtil.getConvexPolygonForPoints(List<Point> points) Computes the convex hull (minimal convex polygon) for the given set of points using the Jarvis March algorithm.Polygon.getIntersectionPolygon(Polygon other) Deprecated.static PolygonGeometryUtil.getRectangleAround(Point point, double width, double height) Returns a polygon consisting of 4 segments that is a rectangle with the specified side width and height with center at the specified point.static PolygonGeometryUtil.getRectangleByCornerPoints(Point firstCornerPoint, Point secondCornerPoint) Creates aPolygoninstance representing an axis-aligned rectangle using two opposite corner points.static PolygonGeometryUtil.getSquareAround(Point point, double squareSide) Returns a polygon consisting of 4 segments that is a square with the specified side length with center at the specified point.Methods in com.amalgamasimulation.geometry that return types with arguments of type PolygonModifier and TypeMethodDescriptionPolygon.getExclusionPolygons(Polygon other) Returns a list of closed polygons without self-intersections each having non-zero area, that fully cover the area of this polygon with the specified other polygon excluded from this one.Polygon.getIntersectionPolygons(Polygon other) Returns a list of closed polygons without self-intersections each having non-zero area, that fully cover the area of intersection of this polygon and the specified other polygon.Polygon.getSimplePolygons()Returns a list of closed polygons without self-intersections each having non-zero area, that fully cover the area of this polygon.Methods in com.amalgamasimulation.geometry with parameters of type PolygonModifier and TypeMethodDescriptionPolygon.getExclusionPolygons(Polygon other) Returns a list of closed polygons without self-intersections each having non-zero area, that fully cover the area of this polygon with the specified other polygon excluded from this one.Polygon.getIntersectionPolygon(Polygon other) Deprecated.usegetIntersectionPolygons(Polygon)insteadPolygon.getIntersectionPolygons(Polygon other) Returns a list of closed polygons without self-intersections each having non-zero area, that fully cover the area of intersection of this polygon and the specified other polygon.booleanPolygon.isEquivalent(Polygon other) Checks whether this polygon is equivalent to the other polygon, meaning they contain the same points in the same order but possibly with a different starting point.booleanPolygon.isOtherPolygonInside(Polygon other) Checks whether the other polygon is completely inside this polygon.
getIntersectionPolygons(Polygon)instead