BoundingBox

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: Double, y: Double, width: Double, height: Double): BoundingBox
def contract(boundingBox: BoundingBox, amount: Double): BoundingBox
def encompassing(a: BoundingBox, b: BoundingBox): Boolean
def expand(boundingBox: BoundingBox, amount: Double): BoundingBox
def fromVertexCloud(vertices: List[Vertex]): 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.

def fromVertices(vertices: List[Vertex]): BoundingBox
def lineIntersects(boundingBox: BoundingBox, line: LineSegment): Boolean
def lineIntersectsAt(boundingBox: BoundingBox, line: LineSegment): Option[Vertex]
def overlapping(a: BoundingBox, b: BoundingBox): Boolean
def toLineSegments(boundingBox: BoundingBox): List[LineSegment]

Concrete fields