WebPlanner Programmer's Guide

Utilities.GetNearestPt Method

See Also
 


Calculates the orthogonal projection of the specified point on the line defined be the specified point pair.

Namespace: MindFusion
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

public static PointF GetNearestPt (
    PointF pt,
    PointF segPt1,
    PointF segPt2
)

Visual Basic  Copy Code

Public Shared Function GetNearestPt ( _
    pt As PointF, _
    segPt1 As PointF, _
    segPt2 As PointF _
) As PointF

 Parameters

pt
segPt1
segPt2

 Return Value

 See Also