class Rectangle


Simple rect class

Summary

Public constructors

Public functions

Boolean
contains(x: Int, y: Int)
Int
Int
Unit
setBounds(x: Int, y: Int, width: Int, height: Int)

Public properties

Int
Int
Int
Int

Public constructors

Rectangle

Added in 1.1.0
Rectangle()

Public functions

contains

Added in 1.1.0
fun contains(x: Int, y: Int): Boolean

getCenterX

Added in 1.1.0
fun getCenterX(): Int

getCenterY

Added in 1.1.0
fun getCenterY(): Int

setBounds

Added in 1.1.0
fun setBounds(x: Int, y: Int, width: Int, height: Int): Unit

Public properties

height

Added in 1.1.0
val heightInt

width

Added in 1.1.0
val widthInt

x

Added in 1.1.0
val xInt

y

Added in 1.1.0
val yInt