Class/Object

archery

Box

Related Docs: object Box | package archery

Permalink

case class Box(x: Float, y: Float, x2: Float, y2: Float) extends Geom with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Geom, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Box
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Geom
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Box(x: Float, y: Float, x2: Float, y2: Float)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def area: Float

    Permalink
    Definition Classes
    Geom
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contains(geom: Geom): Boolean

    Permalink

    Returns whether this geometry contains the other.

    Returns whether this geometry contains the other.

    Containment includes the border, so points "on the edge" count as contained.

    Definition Classes
    Geom
  8. def distance(pt: Point): Double

    Permalink

    Distance between this geometry and the given point.

    Distance between this geometry and the given point.

    The distance is measured in terms of the closest point in the geometry. For points this is obvious (there is only one point to use). For boxes, this means that points contained within the box (or on the perimeter) have a distance of zero.

    Definition Classes
    Geom
  9. def distanceSquared(pt: Point): Double

    Permalink

    Distance between this geometry and the given point, squared.

    Distance between this geometry and the given point, squared.

    See distance() for how to interpret the distance metric. This method is a bit faster than distance(), and is exposed for cases where we want to compare two distances (without caring about the actual distance value).

    Definition Classes
    Geom
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def expand(geom: Geom): Box

    Permalink

    Construct a Box that contains this geometry and the other.

    Construct a Box that contains this geometry and the other.

    This will be the smallest possible box. The result of this method is guaranteed to contain() both geometries.

    Definition Classes
    Geom
  12. def expandArea(geom: Geom): Float

    Permalink

    Return the given geometry's area outside this geometry.

    Return the given geometry's area outside this geometry.

    This is equivalent to the area that would be added by expand().

    Definition Classes
    Geom
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def height: Float

    Permalink
    Definition Classes
    Geom
  16. def intersects(geom: Geom): Boolean

    Permalink

    Returns whether this geometry intersects with the other.

    Returns whether this geometry intersects with the other.

    Intersection includes the border, so points "on the edge" count as intersecting.

    Definition Classes
    Geom
  17. def isFinite: Boolean

    Permalink

    Return whether all the bounds of the geometry are finite.

    Return whether all the bounds of the geometry are finite.

    "Finite" means all values except NaN and infinities.

    Definition Classes
    Geom
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def lowerLeft: Point

    Permalink

    Get the lower-left (southwest) bound of the geometry.

    Get the lower-left (southwest) bound of the geometry.

    Definition Classes
    Geom
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toBox: Box

    Permalink

    Convert this Geom to a Box.

    Convert this Geom to a Box.

    For Boxes this is a no-op. For points, it constructs a box with width and height of zero.

    Definition Classes
    BoxGeom
  25. def upperRight: Point

    Permalink

    Get the upper-right (northeast) bound of the geometry.

    Get the upper-right (northeast) bound of the geometry.

    Definition Classes
    Geom
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def width: Float

    Permalink
    Definition Classes
    Geom
  30. def wraps(geom: Geom): Boolean

    Permalink

    Returns whether this geometry wraps the other.

    Returns whether this geometry wraps the other.

    This is the same thing as containment, but it excludes the border. Points can never wrap anything, and boxes can only wrap geometries with less area than they have.

    Definition Classes
    Geom
  31. val x: Float

    Permalink
    Definition Classes
    BoxGeom
  32. val x2: Float

    Permalink
    Definition Classes
    BoxGeom
  33. val y: Float

    Permalink
    Definition Classes
    BoxGeom
  34. val y2: Float

    Permalink
    Definition Classes
    BoxGeom

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Geom

Inherited from AnyRef

Inherited from Any

Ungrouped