Rectangle

final case
class Rectangle(position: Point, size: Size)
Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def *(rect: Rectangle): Rectangle
def *(i: Int): Rectangle
def +(rect: Rectangle): Rectangle
def +(i: Int): Rectangle
def -(rect: Rectangle): Rectangle
def -(i: Int): Rectangle
def /(rect: Rectangle): Rectangle
def /(i: Int): Rectangle
def contains(pt: Point): Boolean
def contains(x: Int, y: Int): Boolean
def contract(amount: Int): Rectangle
def encompasses(other: Rectangle): Boolean
def expand(amount: Int): Rectangle
def isPointWithin(pt: Point): Boolean
def isPointWithin(x: Int, y: Int): Boolean
def moveBy(point: Point): Rectangle
def moveTo(point: Point): Rectangle
def overlaps(other: Rectangle): Boolean
def resize(newSize: Size): Rectangle

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

lazy
val bottom: Int
lazy
lazy
lazy
lazy
val corners: List[Point]
lazy
lazy
val height: Int
lazy
lazy
val left: Int
lazy
val right: Int
lazy
val top: Int
lazy
lazy
lazy
lazy
val width: Int
lazy
val x: Int
lazy
val y: Int