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

Namespace:  AForge.Math.Geometry
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public Nullable<Point> GetIntersectionWith(
	Line other
)

Parameters

other
Type: AForge.Math.Geometry..::.Line
Line to find intersection with.

Return Value

Returns intersection point with the specified Line, or nullNothingnullptra null reference (Nothing in Visual Basic), if the line does not intersect with this segment.

Remarks

If the line and the segment do not intersect, the method returns nullNothingnullptra null reference (Nothing in Visual Basic). If the line and the segment share multiple points, the method throws an InvalidOperationException.

Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionThrown if this segment is a portion of other line.

See Also