IntRectangle

data class IntRectangle(corner: IntVector2, width: Int, height: Int)

Creates a new IntRectangle.

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

Also see Rectangle.

Constructors

IntRectangle
Link copied to clipboard
common
fun IntRectangle(x: Int, y: Int, width: Int, height: Int)
IntRectangle
Link copied to clipboard
common
fun IntRectangle(corner: IntVector2, width: Int, height: Int)

Properties

area
Link copied to clipboard
common
val area: Int

The unitless area covered by this IntRectangle.

center
Link copied to clipboard
common
val center: IntVector2
corner
Link copied to clipboard
common
val corner: IntVector2
height
Link copied to clipboard
common
val height: Int
rectangle
Link copied to clipboard
common
val rectangle: Rectangle
width
Link copied to clipboard
common
val width: Int
x
Link copied to clipboard
common
val x: Int
y
Link copied to clipboard
common
val y: Int