AbstractConvexPolygon
An abstract ConvexPolygon providing a convexity test.
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.
Checks if the polygon contains a vector (= a point). The definition of insideness may vary depending on the implementation, this may affect the outcome for points lying on the polygon's boundary. For accurate operations see containsBoundaryIncluded and containsBoundaryExcluded.
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.
Checks if a java.awt.Shape intersects the polygon, adjacent shapes are not considered 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.