IntRectangle

@Serializable
data class IntRectangle(val corner: IntVector2, val width: Int, val height: Int)(source)

Creates a new IntRectangle.

Uses IntVector2s which require whole numbers (integers) for position and dimensions.

Also see Rectangle.

Constructors

Link copied to clipboard
constructor(corner: IntVector2, width: Int, height: Int)

Properties

Link copied to clipboard
val area: Int

The unitless area covered by this IntRectangle.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The dimensions of the IntRectangle.

Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
Link copied to clipboard
val y: Int
Link copied to clipboard