Class SplitSegment
Models a constraint segment which can be split in two in various ways, according to certain geometric constraints.
Inherited Members
Namespace: NetTopologySuite.Triangulate
Assembly: NetTopologySuite.dll
Syntax
public class SplitSegment
Constructors
| Edit this page View SourceSplitSegment(LineSegment)
Creates an instance of this class using the provided LineSegment
Declaration
public SplitSegment(LineSegment seg)
Parameters
| Type | Name | Description |
|---|---|---|
| LineSegment | seg | A |
Properties
| Edit this page View SourceMinimumLength
Gets or sets a value indicating the minimum length of a segment
Declaration
public double MinimumLength { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
SplitPoint
Gets a value indicating the computed split point
Declaration
public Coordinate SplitPoint { get; }
Property Value
| Type | Description |
|---|---|
| Coordinate |
Methods
| Edit this page View SourceSplitAt(Coordinate)
Computes the SplitPoint close to the given Coordinate,
ensuring that MinimumLength is not violated.
Declaration
public void SplitAt(Coordinate pt)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate | pt | The |
SplitAt(double, Coordinate)
Computes the SplitPoint using the provided length and endPt.
Declaration
public void SplitAt(double length, Coordinate endPt)
Parameters
| Type | Name | Description |
|---|---|---|
| double | length | The length to split at |
| Coordinate | endPt | The |