contains

abstract operator fun contains(point: Point): Boolean

Checks whether the Shape contains a given point.

Return

true if the point is within the Shape

Parameters

point

The point


abstract operator fun contains(rectangle: Rectangle): Boolean

Checks whether the Shape contains a given rectangle.

Return

true if the rectangle is within the Shape

Parameters

rectangle

The rectangle