Shape

interface Shape

Represents a shape in a two-dimensional Euclidean space.

Inheritors

Properties

Link copied to clipboard
abstract val area: Float

Returns the area of this shape.

Link copied to clipboard
abstract val perimeter: Float

Returns the perimeter of this shape.