Click or drag to resize
Accord.NET (logo)

LineSegmentGetIntersectionWith Method (Line)

Finds, provided it exists, the intersection point with the specified Line.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public Nullable<Point> GetIntersectionWith(
	Line other
)
Request Example View Source

Parameters

other
Type: Accord.Math.GeometryLine
Line to find intersection with.

Return Value

Type: NullablePoint
Returns intersection point with the specified Line, or , if the line does not intersect with this segment.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if this segment is a portion of other line.
Remarks

If the line and the segment do not intersect, the method returns . If the line and the segment share multiple points, the method throws an InvalidOperationException.

See Also