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

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 expand(boundingBox: BoundingBox, amount: Double): 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

Concrete fields

Givens

Givens