Show / Hide Table of Contents

Class OrthogonalLineIntersection

Inheritance
System.Object
OrthogonalLineIntersection
Implements
ILineIntersection<OrthogonalLineGrid2D>
Namespace: Edgar.Legacy.GeneralAlgorithms.Algorithms.Common
Assembly: Edgar.dll
Syntax
public class OrthogonalLineIntersection : Object, ILineIntersection<OrthogonalLineGrid2D>

Constructors

OrthogonalLineIntersection()

Declaration
public OrthogonalLineIntersection()

Methods

DoIntersect(IEnumerable<OrthogonalLineGrid2D>, List<OrthogonalLineGrid2D>)

Like GetIntersections() but only reports if there is an intersection.

Declaration
public bool DoIntersect(IEnumerable<OrthogonalLineGrid2D> lines1, List<OrthogonalLineGrid2D> lines2)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OrthogonalLineGrid2D> lines1
System.Collections.Generic.List<OrthogonalLineGrid2D> lines2
Returns
Type Description
System.Boolean

GetIntersections(List<OrthogonalLineGrid2D>, List<OrthogonalLineGrid2D>)

Get all intersections where one line is from the first set and the other one from the second one.

Declaration
public List<OrthogonalLineGrid2D> GetIntersections(List<OrthogonalLineGrid2D> lines1, List<OrthogonalLineGrid2D> lines2)
Parameters
Type Name Description
System.Collections.Generic.List<OrthogonalLineGrid2D> lines1
System.Collections.Generic.List<OrthogonalLineGrid2D> lines2
Returns
Type Description
System.Collections.Generic.List<OrthogonalLineGrid2D>
Remarks

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

PartitionByIntersection(OrthogonalLineGrid2D, IList<OrthogonalLineGrid2D>)

Declaration
public List<OrthogonalLineGrid2D> PartitionByIntersection(OrthogonalLineGrid2D line, IList<OrthogonalLineGrid2D> intersection)
Parameters
Type Name Description
OrthogonalLineGrid2D line
System.Collections.Generic.IList<OrthogonalLineGrid2D> intersection
Returns
Type Description
System.Collections.Generic.List<OrthogonalLineGrid2D>

RemoveIntersections(List<OrthogonalLineGrid2D>)

Declaration
public List<OrthogonalLineGrid2D> RemoveIntersections(List<OrthogonalLineGrid2D> lines)
Parameters
Type Name Description
System.Collections.Generic.List<OrthogonalLineGrid2D> lines
Returns
Type Description
System.Collections.Generic.List<OrthogonalLineGrid2D>

TryGetIntersection(OrthogonalLineGrid2D, OrthogonalLineGrid2D, out OrthogonalLineGrid2D)

Gets intersection between two given lines.

Declaration
public bool TryGetIntersection(OrthogonalLineGrid2D line1, OrthogonalLineGrid2D line2, out OrthogonalLineGrid2D intersection)
Parameters
Type Name Description
OrthogonalLineGrid2D line1
OrthogonalLineGrid2D line2
OrthogonalLineGrid2D intersection
Returns
Type Description
System.Boolean

True if there is a non-empty intersection.

Implements

ILineIntersection<TLine>
Back to top Generated by DocFX