object Quadrant

Utility functions for working with quadrants, which are numbered as follows:

1 | 0
--+--
2 | 3

Version

1.7

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Quadrant
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. val NE: Int
  5. val NW: Int
  6. val SE: Int
  7. val SW: Int
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def commonHalfPlane(quad1: Int, quad2: Int): Int

    Returns the right-hand quadrant of the halfplane defined by the two quadrants, or -1 if the quadrants are opposite, or the quadrant if they are identical.

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def isInHalfPlane(quad: Int, halfPlane: Int): Boolean

    Returns whether the given quadrant lies within the given halfplane (specified by its right-hand quadrant).

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isNorthern(quad: Int): Boolean

    Returns true if the given quadrant is 0 or 1.

  19. def isOpposite(quad1: Int, quad2: Int): Boolean

    Returns true if the quadrants are 1 and 3, or 2 and 4

  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 quadrant(p0: Coordinate, p1: Coordinate): Int

    Returns the quadrant of a directed line segment from p0 to p1.

    Returns the quadrant of a directed line segment from p0 to p1.

    throws IllegalArgumentException if the points are equal

  24. def quadrant(dx: Double, dy: Double): Int

    Returns the quadrant of a directed line segment (specified as x and y displacements, which cannot both be 0).

    Returns the quadrant of a directed line segment (specified as x and y displacements, which cannot both be 0).

    throws IllegalArgumentException if the displacements are both 0

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped