IntRectangle

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

Creates a new IntRectangle.

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

Also see Rectangle.

Constructors

Link copied to clipboard
fun IntRectangle(    x: Int,     y: Int,     width: Int,     height: Int)
Link copied to clipboard
fun IntRectangle(    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
val center: IntVector2
Link copied to clipboard
val corner: IntVector2
Link copied to clipboard
val height: Int
Link copied to clipboard
val rectangle: Rectangle
Link copied to clipboard
val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Sources

Link copied to clipboard