namespace GeometriCS
{
///
/// Intersection between two two-dimensional lines.
///
public class IntersectionLine2ToLine2d
{
///
/// Possible statuses the intersection can be.
///
public enum Statuses
{
///
/// Intersection is valid.
///
SUCCESS,
///
/// The two lines are parallel.
///
PARALLEL,
}
///
/// First of the intersecting lines.
///
public Line2d Line1 { get; }
///
/// The second intersecting line.
///
public Line2d Line2 { get; }
///
/// Status of the intersection.
///
public Statuses Status { get; }
///
/// The point of the intersection between the two lines.
///
public Vector2d? Result { get; }
///
/// Constructor for Line2d to Line2d intersection.
///
/// First of the intersecting lines.
/// Second of the intersecting lines.
public IntersectionLine2ToLine2d(Line2d line1, Line2d line2)
{
Line1 = line1;
Line2 = line2;
// Process the intersection
throw new NotImplementedException();
}
}
}