Show / Hide Table of Contents

Interface ILineIntersection<TLine>

Namespace: Edgar.Legacy.GeneralAlgorithms.Algorithms.Common
Assembly: Edgar.dll
Syntax
public interface ILineIntersection<TLine>
Type Parameters
Name Description
TLine

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>
Remarks

There may be duplicities in the output if the two sets have duplicities themselves.

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>
Remarks

Intersection lines must lie on a given line Intersection lines must not overlap Intersection lines may be single points - lines with length 0

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.

Back to top Generated by DocFX