GetLineIntersectionPoint

From SwinGame

GetLineIntersectionPoint checks if the lines intersect and returns true if they intersect. The routine will also output the intersection point to the specified variable.

Where is it: SGSDK_SHAPES

Contents

Languages

Pascal

Added in version 1.1:

function GetLineIntersectionPoint(line1, line2: LineSegment; out pnt: Point2D) : Boolean;

C#

Added in version 1.1:

public bool Shapes.GetLineIntersectionPoint(LineSegment line1, LineSegment line2, out Point2D pnt);

Visual Basic .NET

Added in version 1.1:

Public Function Shapes.GetLineIntersectionPoint(ByVal line1 As LineSegment, ByVal line2 As LineSegment, ByRef pnt Point2D) As Boolean

Visual Basic 6

Added in version 1.1:

Public Function Physics.GetLineIntersectionPoint(ByVal line1 As LineSegment, ByVal line2 As LineSegment, ByRef pnt As Point2D) As Boolean

Example

Also See