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
type MirroredLabel <: String

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 encompassing(a: Rectangle, b: Rectangle): Boolean
def expand(rectangle: Rectangle, amount: Int): Rectangle
def fromPointCloud(points: List[Point]): 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
def overlapping(a: Rectangle, b: Rectangle): Boolean

Deprecated methods

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

Concrete fields

Givens

Givens

given given_CanEqual_Option_Option: CanEqual[Option[Rectangle], Option[Rectangle]]