RectangleI

data class RectangleI(val x: Int, val y: Int, val width: Int, val height: Int)

Constructors

Link copied to clipboard
constructor()
constructor(position: Vector2I, size: SizeInt)
constructor(x: Int, y: Int, width: Int, height: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val area: Int
Link copied to clipboard
val bottom: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val left: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val right: Int
Link copied to clipboard
Link copied to clipboard
val top: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Functions

Link copied to clipboard
operator fun contains(that: Point): Boolean
operator fun contains(that: Vector2I): Boolean
fun contains(x: Int, y: Int): Boolean
Link copied to clipboard
operator fun div(scale: Double): RectangleInt
operator fun div(scale: Float): RectangleInt
operator fun div(scale: Int): RectangleInt
Link copied to clipboard
Link copied to clipboard
fun sliceWithBounds(left: Int, top: Int, right: Int, bottom: Int, clamped: Boolean = true): RectangleInt
Link copied to clipboard
fun sliceWithSize(x: Int, y: Int, width: Int, height: Int, clamped: Boolean = true): RectangleInt
Link copied to clipboard
operator fun times(scale: Double): RectangleInt
operator fun times(scale: Float): RectangleInt
operator fun times(scale: Int): RectangleInt
Link copied to clipboard
fun RectangleInt.toAwt(out: Rectangle = java.awt.Rectangle()): Rectangle
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String