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 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 val bottomLeft: Point
lazy val bottomRight: Point
lazy val center: Point
lazy val corners: List[Point]
lazy val halfSize: Size
lazy val hash: String
lazy val height: Int
lazy val horizontalCenter: Int
lazy val left: Int
lazy val right: Int
lazy val top: Int
lazy val topLeft: Point
lazy val topRight: Point
lazy val verticalCenter: Int
lazy val width: Int
lazy val x: Int
lazy val y: Int