IsPointOnLine

From SwinGame

IsPointOnLine checks if the specified point is on the specified line. The routine will return true if the point is on the line.

Where is it: SGSDK_SHAPES

Contents

Languages

Pascal

Added in version 1.1:

function IsPointOnLine(pnt: Point2D; line: LineSegment): Boolean;

C#

Added in version 1.1:

public bool Shapes.IsPointOnLine(Point2D pnt, LineSegment line);

Visual Basic .NET

Added in version 1.1:

Public Function Shapes.IsPointOnLine(ByVal pnt As Point2D, ByVal line As LineSegment) As Boolean

Visual Basic 6

Added in version 1.1:

Public Function Physics.IsPointOnLine(ByVal pnt As Point2D, ByVal line As LineSegment) As Boolean

Example

Also See