object Orientation
Functions to compute the orientation of basic geometric structures including point triplets (triangles) and rings. Orientation is a fundamental property of planar geometries (and more generally geometry on two-dimensional manifolds).
Orientation is notoriously subject to numerical precision errors in the case of collinear or nearly collinear points. JTS uses extended-precision arithmetic to increase the robustness of the computation.
- Alphabetic
- By Inheritance
- Orientation
- 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 CLOCKWISE: Int
A value that indicates an orientation of clockwise, or a right turn.
- val COLLINEAR: Int
A value that indicates an orientation of collinear, or no turn (straight).
- val COUNTERCLOCKWISE: Int
A value that indicates an orientation of counterclockwise, or a left turn.
- val LEFT: Int
- val RIGHT: Int
- val STRAIGHT: 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()
- 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 index(p1: Coordinate, p2: Coordinate, q: Coordinate): Int
Returns the orientation index of the direction of the point
qrelative to a directed infinite line specified byp1-p2.Returns the orientation index of the direction of the point
qrelative to a directed infinite line specified byp1-p2. The index indicates whether the point lies to the {link #LEFT} or {link #RIGHT} of the line, or lies on it {link #COLLINEAR}. The index also indicates the orientation of the triangle formed by the three points ( {link #COUNTERCLOCKWISE}, {link #CLOCKWISE}, or {link #STRAIGHT} )- p1
the origin point of the line vector
- p2
the final point of the line vector
- q
the point to compute the direction to return -1 ( { @link #CLOCKWISE} or { @link #RIGHT} ) if q is clockwise (right) from p1-p2; 1 ( { @link #COUNTERCLOCKWISE} or { @link #LEFT} ) if q is counter-clockwise (left) from p1-p2; 0 ( { @link #COLLINEAR} or { @link #STRAIGHT} ) if q is collinear with p1-p2
- def isCCW(ring: CoordinateSequence): Boolean
Computes whether a ring defined by an {link CoordinateSequence} is oriented counter-clockwise.
Computes whether a ring defined by an {link CoordinateSequence} is oriented counter-clockwise.
- The list of points is assumed to have the first and last points equal.
- This will handle coordinate lists which contain repeated points.
This algorithm is only guaranteed to work with valid rings. If the ring is invalid (e.g. self-crosses or touches), the computed result may not be correct.
- ring
a CoordinateSequence forming a ring return true if the ring is oriented counter-clockwise. throws IllegalArgumentException if there are too few points to determine orientation (< 4)
- def isCCW(ring: Array[Coordinate]): Boolean
Computes whether a ring defined by an array of {link Coordinate}s is oriented counter-clockwise.
Computes whether a ring defined by an array of {link Coordinate}s is oriented counter-clockwise.
- The list of points is assumed to have the first and last points equal.
- This will handle coordinate lists which contain repeated points.
This algorithm is only guaranteed to work with valid rings. If the ring is invalid (e.g. self-crosses or touches), the computed result may not be correct.
- ring
an array of Coordinates forming a ring return true if the ring is oriented counter-clockwise. throws IllegalArgumentException if there are too few points to determine orientation (< 4)
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- 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()