TriangleShape

interface TriangleShape : Shape

Represents a shape of triangle 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 Triangle.

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.

Link copied to clipboard
abstract val sideLengthAB: Float

Returns the side length between points A and B of this triangle.

Link copied to clipboard
abstract val sideLengthAC: Float

Returns the side length between points A and C of this triangle.

Link copied to clipboard
abstract val sideLengthBC: Float

Returns the side length between points B and C of this triangle.