|
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
)
Public Function GetIntersectionWith (
other As Line
) As Nullable(Of Point)
Request Example
View SourceParameters
- other
- Type: Accord.Math.GeometryLine
Line to find intersection with.
Return Value
Type:
NullablePointReturns intersection point with the specified
Line, or
, if
the line does not intersect with this segment.
Exceptions Exception | Condition |
---|
InvalidOperationException | Thrown 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