Shape

interface Shape

Objects implementing this interface represent shapes.

Inheritors

Properties

Link copied to clipboard
abstract val area: Double
Link copied to clipboard
Link copied to clipboard
abstract val empty: Boolean

Functions

Link copied to clipboard
abstract operator fun contains(point: Point): Boolean

Checks whether the Shape contains a given point.

abstract operator fun contains(rectangle: Rectangle): Boolean

Checks whether the Shape contains a given rectangle.

Link copied to clipboard
abstract infix fun intersects(rectangle: Rectangle): Boolean

Checks whether the Shape intersects a rectangle.