Rectangle

@Serializable(with = RectangleSerializer::class)
data class Rectangle(val first: Coordinates, val second: Coordinates)

Data model for a Rectangle. A rectangle is defined by a pair of coordinates. The first coordinate represents the upper left corner, while the second is the lower right corner.

Constructors

Link copied to clipboard
constructor(first: Coordinates, second: Coordinates)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Converts this instance to a pair of coordinates