contains

open operator override 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


open operator override 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