GeManagerLineIntersection2d Method |
Namespace: FDF.Common.GeometriesAssembly: FDF.Common (in FDF.Common.dll) Version: 3.0.0.0
Syntax public static bool LineIntersection2d(
ref GeCoordinate IntersectPoint,
GeCoordinate L1StartPoint,
GeCoordinate L1EndPoint,
GeCoordinate L2StartPoint,
GeCoordinate L2EndPoint
)
Public Shared Function LineIntersection2d (
ByRef IntersectPoint As GeCoordinate,
L1StartPoint As GeCoordinate,
L1EndPoint As GeCoordinate,
L2StartPoint As GeCoordinate,
L2EndPoint As GeCoordinate
) As Boolean
public:
static bool LineIntersection2d(
GeCoordinate^% IntersectPoint,
GeCoordinate^ L1StartPoint,
GeCoordinate^ L1EndPoint,
GeCoordinate^ L2StartPoint,
GeCoordinate^ L2EndPoint
)
static member LineIntersection2d :
IntersectPoint : GeCoordinate byref *
L1StartPoint : GeCoordinate *
L1EndPoint : GeCoordinate *
L2StartPoint : GeCoordinate *
L2EndPoint : GeCoordinate -> bool
Parameters
- IntersectPoint
- Type: FDF.Common.GeometriesGeCoordinate
The intersection point. A PointD structure. - L1StartPoint
- Type: FDF.Common.GeometriesGeCoordinate
The starting point of first line. A PointD structure. - L1EndPoint
- Type: FDF.Common.GeometriesGeCoordinate
The end point of first line. A PointD structure. - L2StartPoint
- Type: FDF.Common.GeometriesGeCoordinate
The starting point of second line. A PointD structure. - L2EndPoint
- Type: FDF.Common.GeometriesGeCoordinate
The end point of second line. A PointD structure.
Return Value
Type:
BooleanReturns a boolean. True if there is intersection, false otherwise.
Remarks The formula is taken from comp.graphics.algorithms Frequently Asked Questions.
See Also