object Quadrant
Utility functions for working with quadrants, which are numbered as follows:
1 | 0 --+-- 2 | 3
- Version
1.7
- Alphabetic
- By Inheritance
- Quadrant
- AnyRef
- Any
- Hide All
- Show All
- 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
- val NE: Int
- val NW: Int
- val SE: Int
- val SW: Int
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isInHalfPlane(quad: Int, halfPlane: Int): Boolean
Returns whether the given quadrant lies within the given halfplane (specified by its right-hand quadrant).
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNorthern(quad: Int): Boolean
Returns true if the given quadrant is 0 or 1.
- def isOpposite(quad1: Int, quad2: Int): Boolean
Returns true if the quadrants are 1 and 3, or 2 and 4
- 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 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
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()