Rectangle

@Serializable
data class Rectangle(val x: Float, val y: Float, val width: Float, val height: Float)

Represents a rectangle.

Constructors

Link copied to clipboard
constructor(x: Float, y: Float, width: Float, height: Float)

Properties

Link copied to clipboard

Height of the rectangle.

Link copied to clipboard

Width of the rectangle.

Link copied to clipboard
val x: Float

X coordinate of the top-left corner of the rectangle.

Link copied to clipboard
val y: Float

Y coordinate of the top-left corner of the rectangle.