Rectangle

class Rectangle(x: Int, y: Int, width: Int, height: Int) : Validatable

Constructors

Rectangle
Link copied to clipboard
fun Rectangle(x: Int, y: Int, dim: Dimension)
Rectangle
Link copied to clipboard
fun Rectangle(p: Point, dim: Dimension)
Rectangle
Link copied to clipboard
fun Rectangle()

Types

Companion
Link copied to clipboard
object Companion

Functions

center
Link copied to clipboard
fun center(): Point
contains
Link copied to clipboard
fun contains(p: Point?): Boolean
fun contains(x: Int, y: Int): Boolean
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isEmpty
Link copied to clipboard
fun isEmpty(): Boolean
nextPoint
Link copied to clipboard
fun nextPoint(): Point
setBounds
Link copied to clipboard
fun setBounds(r: Rectangle)
toString
Link copied to clipboard
open override fun toString(): String
valid
Link copied to clipboard
open override fun valid(): Boolean

Properties

centerX
Link copied to clipboard
val centerX: Int
centerY
Link copied to clipboard
val centerY: Int
height
Link copied to clipboard
var height: Int
width
Link copied to clipboard
var width: Int
x
Link copied to clipboard
var x: Int
y
Link copied to clipboard
var y: Int