Class RobustLineIntersector
A robust version of LineIntersector.
Inherited Members
Namespace: NetTopologySuite.Algorithm
Assembly: NetTopologySuite.dll
Syntax
public class RobustLineIntersector : LineIntersector
Constructors
| Edit this page View SourceRobustLineIntersector()
Creates an instance of this class. No ElevationModel is assigned
Declaration
public RobustLineIntersector()
RobustLineIntersector(ElevationModel)
Creates an instance of this class assigning the provided ElevationModel.
Declaration
public RobustLineIntersector(ElevationModel elevationModel)
Parameters
Type | Name | Description |
---|---|---|
ElevationModel | elevationModel |
Properties
| Edit this page View SourceElevationModel
Gets or sets a value indicating the elevation model to use when z-ordinate is not known
Declaration
public ElevationModel ElevationModel { get; }
Property Value
Type | Description |
---|---|
ElevationModel |
Methods
| Edit this page View SourceComputeIntersect(Coordinate, Coordinate, Coordinate, Coordinate)
Computes the intersection of two line segments, one defined by p1
and p2
,
the other by q1
and q2
.
Declaration
public override int ComputeIntersect(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | p1 | The 1st point of the 1st segment |
Coordinate | p2 | The 2nd point of the 1st segment |
Coordinate | q1 | The 1st point of the 2nd segment |
Coordinate | q2 | The 2nd point of the 2nd segment |
Returns
Type | Description |
---|---|
int |
Overrides
Remarks
Don't use this function directly, it is not meant for public use. Please call ComputeIntersection(Coordinate, Coordinate, Coordinate, Coordinate) and test HasIntersection or IsCollinear along with IsProper and IsEndPoint.
ComputeIntersection(Coordinate, Coordinate, Coordinate)
Declaration
public override void ComputeIntersection(Coordinate p, Coordinate p1, Coordinate p2)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | p | |
Coordinate | p1 | |
Coordinate | p2 |