RegularShape

interface RegularShape : Shape

Represents a regular shape 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 RegularPolygon.

Inheritors

Properties

Link copied to clipboard
abstract val area: Float

Returns the area of this shape.

Link copied to clipboard
abstract val circumradius: Float

Returns the circumradius of this shape.

Link copied to clipboard
abstract val exteriorAngle: AngleF

Returns the exterior angle of this shape.

Link copied to clipboard
abstract val inradius: Float

Returns the inradius of this shape.

Link copied to clipboard
abstract val interiorAngle: AngleF

Returns the interior angle of this shape.

Link copied to clipboard
abstract val perimeter: Float

Returns the perimeter of this shape.

Link copied to clipboard
abstract val sideCount: Int

Returns the side count of this shape.

Link copied to clipboard
abstract val sideLength: Float

Returns the side length of this shape.