BoundingBox

doodle.core.BoundingBox
See theBoundingBox companion object
final case class BoundingBox(left: Double, top: Double, right: Double, bottom: Double)

A doodle.core.BoundingBox represents a bounding box around an picture.

A bounding box also defines a local coordinate system for a picture. The bounding box must contain the origin of the coordinate system. However the origin need not be centered within the box.

No particular guarantees are made about the tightness of the bounding box, though it can assumed to be reasonably tight.

Attributes

Companion:
object
Source:
BoundingBox.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Attributes

Source:
BoundingBox.scala
def at(point: Point): BoundingBox

Attributes

Source:
BoundingBox.scala
def at(landmark: Landmark): BoundingBox

Attributes

Source:
BoundingBox.scala

Attributes

Source:
BoundingBox.scala
def enclose(toInclude: Point): BoundingBox

Expand bounding box to enclose the given Point.

Expand bounding box to enclose the given Point.

Attributes

Source:
BoundingBox.scala
def eval(landmark: Landmark): Point

Evaluate the landmark relative to the origin of this bounding box, returning the location described by the landmark.

Evaluate the landmark relative to the origin of this bounding box, returning the location described by the landmark.

Attributes

Source:
BoundingBox.scala
def expand(expansion: Double): BoundingBox

Add expansion to all sides of this bounding box.

Add expansion to all sides of this bounding box.

Attributes

Source:
BoundingBox.scala

Attributes

Source:
BoundingBox.scala

Attributes

Source:
BoundingBox.scala
def originAt(landmark: Landmark): BoundingBox

Attributes

Source:
BoundingBox.scala

Attributes

Source:
BoundingBox.scala

Attributes

Source:
BoundingBox.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product