Packages

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
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BoundingBox
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BoundingBox(left: Double, top: Double, right: Double, bottom: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def above(that: BoundingBox): BoundingBox
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def at(landmark: Landmark): BoundingBox
  7. def at(point: Point): BoundingBox
  8. def beside(that: BoundingBox): BoundingBox
  9. val bottom: Double
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def enclose(toInclude: Point): BoundingBox

    Expand bounding box to enclose the given Point.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def eval(landmark: Landmark): Point

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

  14. def expand(expansion: Double): BoundingBox

    Add expansion to all sides of this bounding box.

  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def height: Double
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val left: Double
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def on(that: BoundingBox): BoundingBox
  24. def originAt(point: Point): BoundingBox
  25. def originAt(landmark: Landmark): BoundingBox
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. val right: Double
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. val top: Double
  30. def transform(tx: Transform): BoundingBox
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. def width: Double

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped