CircleShape

interface CircleShape : Shape

Represents a shape of circle in a two-dimensional Euclidean space.

Direct implementations of this interface must consider that new interface members may be added in the next versions of the library. Implementations that are safe to use from a compatibility perspective are those that are defined in the library, like Circle.

Inheritors

Properties

Link copied to clipboard
abstract val area: Float

Returns the area of this shape.

Link copied to clipboard
abstract val diameter: Float

Returns the diameter of this circle.

Link copied to clipboard
abstract val perimeter: Float

Returns the perimeter of this shape.

Link copied to clipboard
abstract val radius: Float

Returns the radius of this circle.