BoundingBox

indigo.shared.geometry.BoundingBox
See theBoundingBox companion class
object BoundingBox

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(x: Double, y: Double, width: Double, height: Double): BoundingBox
def apply(width: Double, height: Double): BoundingBox
def apply(size: Vertex): BoundingBox
def contract(boundingBox: BoundingBox, amount: Double): BoundingBox
def encompassing(a: BoundingBox, b: BoundingBox): Boolean
def expand(boundingBox: BoundingBox, amount: Double): BoundingBox
def fromIncircle(boundingCircle: BoundingCircle): BoundingBox

Produces a bounding box that could include all of the vertices. Since the contains methods right and bottom checks are < not <= (to allow bounds to sit next to each other with no overlap), a small fixed margin of 0.001 is add to the size values.

Produces a bounding box that could include all of the vertices. Since the contains methods right and bottom checks are < not <= (to allow bounds to sit next to each other with no overlap), a small fixed margin of 0.001 is add to the size values.

Attributes

def lineIntersects(boundingBox: BoundingBox, line: LineSegment): Boolean
def lineIntersectsAt(boundingBox: BoundingBox, line: LineSegment): Option[Vertex]
def lineIntersectsWithEdge(boundingBox: BoundingBox, line: LineSegment): Option[(Vertex, LineSegment)]
def overlapping(a: BoundingBox, b: BoundingBox): Boolean

Deprecated methods

Attributes

Deprecated
true
def fromCircle(circle: Circle): BoundingBox

Attributes

Deprecated
true

Concrete fields

Givens

Givens