Rectangle

object Rectangle
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(x: Int, y: Int, width: Int, height: Int): Rectangle
def apply(width: Int, height: Int): Rectangle
def apply(size: Size): Rectangle
def contract(rectangle: Rectangle, amount: Int): Rectangle
def expand(rectangle: Rectangle, amount: Int): Rectangle
def fromPoints(pt1: Point, pt2: Point): Rectangle
def fromPoints(pt1: Point, pt2: Point, pt3: Point): Rectangle
def fromPoints(pt1: Point, pt2: Point, pt3: Point, pt4: Point): Rectangle

Deprecated methods

@deprecated("Use `fromPoints(pt1, pt2)` instead")
Deprecated

Concrete fields