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

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 apply(width: Double, height: Double): 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.

def lineIntersects(boundingBox: BoundingBox, line: LineSegment): Boolean

Concrete fields

Givens

Givens