Trait

archery

Geom

Related Doc: package archery

Permalink

sealed trait Geom extends AnyRef

Geometry represents a box (or point).

(x1, y1) is the lower left point and (x2, y2) is upper right.

So Box(1, 2, 5, 4) is at (1, 2) and is 4 wide and 2 high. Points have no width or height, so x2/y2 are equal to x/y.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Geom
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def x: Float

    Permalink
  2. abstract def x2: Float

    Permalink
  3. abstract def y: Float

    Permalink
  4. abstract def y2: Float

    Permalink

Concrete 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
  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.

  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.

  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).

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. 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.

  13. 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().

  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

    Permalink
  18. 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.

  19. 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.

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def lowerLeft: Point

    Permalink

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

  22. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. 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.

  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def upperRight: Point

    Permalink

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

  29. final def wait(): Unit

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

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

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

    Permalink
  33. 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.

Inherited from AnyRef

Inherited from Any

Ungrouped