final case class BoundingBox(left: Double, top: Double, right: Double, bottom: Double) extends Product with Serializable
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.
- Source
- BoundingBox.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BoundingBox
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def above(that: BoundingBox): BoundingBox
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def at(landmark: Landmark): BoundingBox
- def at(point: Point): BoundingBox
- def beside(that: BoundingBox): BoundingBox
- val bottom: Double
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def enclose(toInclude: Point): BoundingBox
Expand bounding box to enclose the given
Point. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def eval(landmark: Landmark): Point
Evaluate the landmark relative to the origin of this bounding box, returning the location described by the landmark.
- def expand(expansion: Double): BoundingBox
Add
expansionto all sides of this bounding box. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def height: Double
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val left: Double
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def on(that: BoundingBox): BoundingBox
- def originAt(point: Point): BoundingBox
- def originAt(landmark: Landmark): BoundingBox
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val right: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val top: Double
- def transform(tx: Transform): BoundingBox
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def width: Double