abstract class LineIntersector extends AnyRef
- Alphabetic
- By Inheritance
- LineIntersector
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LineIntersector()
Abstract Value Members
- abstract def computeIntersect(p1: Coordinate, p2: Coordinate, q1: Coordinate, q2: Coordinate): Int
- Attributes
- protected
- abstract def computeIntersection(p: Coordinate, p1: Coordinate, p2: Coordinate): Unit
Compute the intersection of a point p and the line p1-p2.
Compute the intersection of a point p and the line p1-p2. This function computes the boolean value of the hasIntersection test. The actual value of the intersection (if there is one) is equal to the value of
p.
Concrete 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
- 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 computeIntLineIndex(segmentIndex: Int): Unit
- Attributes
- protected
- def computeIntLineIndex(): Unit
- Attributes
- protected
- def computeIntersection(p1: Coordinate, p2: Coordinate, p3: Coordinate, p4: Coordinate): Unit
Computes the intersection of the lines p1-p2 and p3-p4.
Computes the intersection of the lines p1-p2 and p3-p4. This function computes both the boolean value of the hasIntersection test and the (approximate) value of the intersection point itself (if there is one).
- 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 getEdgeDistance(segmentIndex: Int, intIndex: Int): Double
Computes the "edge distance" of an intersection point along the specified input line segment.
Computes the "edge distance" of an intersection point along the specified input line segment.
- segmentIndex
is 0 or 1
- intIndex
is 0 or 1 return the edge distance of the intersection point
- def getEndpoint(segmentIndex: Int, ptIndex: Int): Coordinate
Gets an endpoint of an input segment.
Gets an endpoint of an input segment.
- segmentIndex
the index of the input segment (0 or 1)
- ptIndex
the index of the endpoint (0 or 1) return the specified endpoint
- def getIndexAlongSegment(segmentIndex: Int, intIndex: Int): Int
Computes the index (order) of the intIndex'th intersection point in the direction of a specified input line segment
Computes the index (order) of the intIndex'th intersection point in the direction of a specified input line segment
- segmentIndex
is 0 or 1
- intIndex
is 0 or 1 return the index of the intersection point along the input segment (0 or 1)
- def getIntersection(intIndex: Int): Coordinate
Returns the intIndex'th intersection point
Returns the intIndex'th intersection point
- intIndex
is 0 or 1 return the intIndex'th intersection point
- def getIntersectionAlongSegment(segmentIndex: Int, intIndex: Int): Coordinate
Computes the intIndex'th intersection point in the direction of a specified input line segment
Computes the intIndex'th intersection point in the direction of a specified input line segment
- segmentIndex
is 0 or 1
- intIndex
is 0 or 1 return the intIndex'th intersection point in the direction of the specified input line segment
- def getIntersectionNum: Int
Returns the number of intersection points found.
Returns the number of intersection points found. This will be either 0, 1 or 2.
return the number of intersection points found (0, 1, or 2)
- def hasIntersection: Boolean
Tests whether the input geometries intersect.
Tests whether the input geometries intersect.
return true if the input geometries intersect
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var inputLines: Array[Array[Coordinate]]
- Attributes
- protected
- var intLineIndex: Array[Array[Int]]
The indexes of the endpoints of the intersection lines, in order along the corresponding line
The indexes of the endpoints of the intersection lines, in order along the corresponding line
- Attributes
- protected
- var intPt: Array[Coordinate]
- Attributes
- protected
- def isCollinear: Boolean
- Attributes
- protected
- def isEndPoint: Boolean
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isInteriorIntersection(inputLineIndex: Int): Boolean
Tests whether either intersection point is an interior point of the specified input segment.
Tests whether either intersection point is an interior point of the specified input segment.
return
trueif either intersection point is in the interior of the input segment - def isInteriorIntersection: Boolean
Tests whether either intersection point is an interior point of one of the input segments.
Tests whether either intersection point is an interior point of one of the input segments.
return
trueif either intersection point is in the interior of one of the input segments - def isIntersection(pt: Coordinate): Boolean
Test whether a point is a intersection point of two line segments.
Test whether a point is a intersection point of two line segments. Note that if the intersection is a line segment, this method only tests for equality with the endpoints of the intersection segment. It does not return true if the input point is internal to the intersection segment.
return true if the input point is one of the intersection points.
- def isProper(): Boolean
Tests whether an intersection is proper.
Tests whether an intersection is proper.
The intersection between two line segments is considered proper if they intersect in a single point in the interior of both segments (e.g. the intersection is a single point and is not equal to any of the endpoints).The intersection between a point and a line segment is considered proper if the point lies in the interior of the segment (e.g. is not equal to either of the endpoints).
return true if the intersection is proper
- var isProperF: Boolean
- Attributes
- protected[jts]
- 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()
- var pa: Coordinate
- Attributes
- protected
- var pb: Coordinate
- Attributes
- protected
- var precisionModel: PrecisionModel
If makePrecise is true, computed intersection coordinates will be made precise using Coordinate#makePrecise
If makePrecise is true, computed intersection coordinates will be made precise using Coordinate#makePrecise
- Attributes
- protected
- var result: Int
- Attributes
- protected
- def setPrecisionModel(precisionModel: PrecisionModel): Unit
Force computed intersection to be rounded to a given precision model.
Force computed intersection to be rounded to a given precision model. No getter is provided, because the precision model is not required to be specified.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- LineIntersector → 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()
Deprecated Value Members
- def setMakePrecise(precisionModel: PrecisionModel): Unit
Force computed intersection to be rounded to a given precision model
Force computed intersection to be rounded to a given precision model
- Deprecated
use
setPrecisionModelinstead