Interface ILineIntersection<TLine>
Assembly: Edgar.dll
Syntax
public interface ILineIntersection<TLine>
Type Parameters
Methods
DoIntersect(IEnumerable<TLine>, List<TLine>)
Like GetIntersections() but only reports if there is an intersection.
Declaration
bool DoIntersect(IEnumerable<TLine> lines1, List<TLine> lines2)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TLine> |
lines1 |
|
System.Collections.Generic.List<TLine> |
lines2 |
|
Returns
Type |
Description |
System.Boolean |
|
GetIntersections(List<TLine>, List<TLine>)
Get all intersections where one line is from the first set and the other one from the second one.
Declaration
List<TLine> GetIntersections(List<TLine> lines1, List<TLine> lines2)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<TLine> |
lines1 |
|
System.Collections.Generic.List<TLine> |
lines2 |
|
Returns
Type |
Description |
System.Collections.Generic.List<TLine> |
|
PartitionByIntersection(TLine, IList<TLine>)
Returns a list of lines obtained by removing all the intersections from the original line.
Declaration
List<TLine> PartitionByIntersection(TLine line, IList<TLine> intersection)
Parameters
Type |
Name |
Description |
TLine |
line |
Line to be partitioned
|
System.Collections.Generic.IList<TLine> |
intersection |
|
Returns
Type |
Description |
System.Collections.Generic.List<TLine> |
|
RemoveIntersections(List<TLine>)
Declaration
List<TLine> RemoveIntersections(List<TLine> lines)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<TLine> |
lines |
|
Returns
Type |
Description |
System.Collections.Generic.List<TLine> |
|
TryGetIntersection(TLine, TLine, out TLine)
Gets intersection between two given lines.
Declaration
bool TryGetIntersection(TLine line1, TLine line2, out TLine intersection)
Parameters
Type |
Name |
Description |
TLine |
line1 |
|
TLine |
line2 |
|
TLine |
intersection |
|
Returns
Type |
Description |
System.Boolean |
True if there is a non-empty intersection.
|