AwtMutableConvexPolygon
MutableConvexPolygon partly delegated to AwtEuclidean2DShape and java.awt.geom. Each modification operation on this object has a time complexity of O(n), where n is the number of vertices/edges. Collinear points are allowed.
Inheritors
Properties
Functions
Finds the edge of the polygon closest to the provided segment, i.e. the first one that would collide (= intersect) with the segment in case the polygon extended on each side.
Checks if the polygon contains a polygonal java.awt.Shape (i.e. without curved segments). A polygonal shape is contained in a polygon if all of its points are contained in (or lie on the boundary of) the latter.
Delegated to AwtEuclidean2DShape (adopts the definition of insideness used by java.awt.Shapes).
Checks if a vector (= a point) is contained in the polygon, boundary excluded.
Checks if a vector (= a point) is contained in the polygon or lies on its boundary.
Checks if a segment intersects with the polygon, segments lying on the polygon's boundary are not considered to be intersecting.
Delegated to AwtEuclidean2DShape unless other is AwtShapeCompatible, in which case intersects is used so as to guarantee maximum accuracy.
Delegated to java.awt.geom.Area, this is accurate and does not consider adjacent shapes to be intersecting.
A polygon is adjacent to another if any of its points lies on the boundary of the other.
Checks if a vector (= a point) lies on the polygon's boundary.
Moves a vertex of the polygon to a new absolute position.
Removes a vertex from the polygon.
Replaces an edge of the polygon.