contains

abstract override fun contains(vector: Euclidean2DPosition): Boolean(source)

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.

Parameters

vector

the vector (= point)


abstract fun contains(shape: Shape): Boolean(source)

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.

Parameters

shape

the polygonal shape