# BoundingBox

indigo.shared.geometry.BoundingBox
See theBoundingBox companion object
final case class BoundingBox(position: Vertex, size: Vertex)

## Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

## Members list

### Value members

#### Concrete methods

def *(rect: BoundingBox): BoundingBox
def *(d: Double): BoundingBox
def +(rect: BoundingBox): BoundingBox
def +(d: Double): BoundingBox
def -(rect: BoundingBox): BoundingBox
def -(d: Double): BoundingBox
def /(rect: BoundingBox): BoundingBox
def /(d: Double): BoundingBox
def contains(vertex: Vertex): Boolean
def contains(vector: Vector2): Boolean
def contains(x: Double, y: Double): Boolean
def contract(amount: Double): BoundingBox
def contract(amount: Vector2): BoundingBox
def distanceToBoundary(vertex: Vertex): Double
def distanceToBoundary(vector: Vector2): Double
def encompasses(other: BoundingBox): Boolean
def encompasses(other: BoundingCircle): Boolean
def expand(amount: Double): BoundingBox
def expand(amount: Vector2): BoundingBox
def lineIntersects(line: LineSegment): Boolean
def lineIntersectsAt(line: LineSegment): Option[Vertex]
def moveBy(amount: Vertex): BoundingBox
def moveBy(x: Double, y: Double): BoundingBox
def moveBy(amount: Vector2): BoundingBox
def moveTo(newPosition: Vertex): BoundingBox
def moveTo(x: Double, y: Double): BoundingBox
def moveTo(newPosition: Vector2): BoundingBox
def overlaps(other: BoundingBox): Boolean
def overlaps(other: BoundingCircle): Boolean
def overlaps(other: LineSegment): Boolean
def reflect(ray: LineSegment): Option[ReflectionData]

Reflects the incoming 'ray' off of the BoundingBox

Reflects the incoming 'ray' off of the BoundingBox

## Attributes

def resize(newSize: Vertex): BoundingBox
def resize(newSize: Vector2): BoundingBox
def resize(x: Double, y: Double): BoundingBox
def resize(value: Double): BoundingBox
def resizeBy(amount: Vertex): BoundingBox
def resizeBy(amount: Vector2): BoundingBox
def resizeBy(x: Double, y: Double): BoundingBox
def resizeBy(amount: Double): BoundingBox
def sdf(vertex: Vertex): Double
def sdf(vector: Vector2): Double
def ~==(other: BoundingBox): Boolean

Deprecated
true

## Attributes

Deprecated
true

#### Inherited methods

def productElementNames: Iterator[String]

## Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

## Attributes

Inherited from:
Product

#### Concrete fields

lazy val bottom: Double
lazy val bottomLeft: Vertex
lazy val bottomRight: Vertex
lazy val center: Vertex
lazy val corners: Batch[Vertex]
lazy val halfSize: Vertex
lazy val height: Double
lazy val horizontalCenter: Double
lazy val left: Double
lazy val right: Double
lazy val top: Double
lazy val topLeft: Vertex
lazy val topRight: Vertex
lazy val verticalCenter: Double
lazy val width: Double
lazy val x: Double
lazy val y: Double