Class OrthogonalLineIntersection
Inheritance
System.Object
OrthogonalLineIntersection
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
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
Returns
PartitionByIntersection(OrthogonalLineGrid2D, IList<OrthogonalLineGrid2D>)
Declaration
public List<OrthogonalLineGrid2D> PartitionByIntersection(OrthogonalLineGrid2D line, IList<OrthogonalLineGrid2D> intersection)
Parameters
Returns
RemoveIntersections(List<OrthogonalLineGrid2D>)
Declaration
public List<OrthogonalLineGrid2D> RemoveIntersections(List<OrthogonalLineGrid2D> lines)
Parameters
Returns
TryGetIntersection(OrthogonalLineGrid2D, OrthogonalLineGrid2D, out OrthogonalLineGrid2D)
Gets intersection between two given lines.
Declaration
public bool TryGetIntersection(OrthogonalLineGrid2D line1, OrthogonalLineGrid2D line2, out OrthogonalLineGrid2D intersection)
Parameters
Returns
Type |
Description |
System.Boolean |
True if there is a non-empty intersection.
|
Implements