GetClosestPointOn Method (IPolyLine) Send Feedback
See Also 
GivenPointX
x coordinate of the point
GivenPointY
y coordinate of the point
GivenPointZ
z coordinate of the point
PointOnCurveX[out]
x coordinate of the point on the 2D PolyLine that is closest to the specified point
PointOnCurveY[out]
y coordinate of the point on the 2D PolyLine that is closest to the specified point
PointOnCurveZ[out]
z coordinate of the point on the 2D PolyLine that is closest to the specified point
Gets the point on the 2D PolyLine that is closest to the specified point.

Syntax

Visual Basic 
Sub GetClosestPointOn( _
   ByVal GivenPointX As System.Double, _
   ByVal GivenPointY As System.Double, _
   ByVal GivenPointZ As System.Double, _
   ByRef PointOnCurveX As System.Double, _
   ByRef PointOnCurveY As System.Double, _
   ByRef PointOnCurveZ As System.Double _
) 
C# 
void GetClosestPointOn( 
   System.double GivenPointX,
   System.double GivenPointY,
   System.double GivenPointZ,
   out System.double PointOnCurveX,
   out System.double PointOnCurveY,
   out System.double PointOnCurveZ
)
JavaScript 
GetClosestPointOn( 
   GivenPointX : Number,
   GivenPointY : Number,
   GivenPointZ : Number
) : {
   PointOnCurveX : Number,
   PointOnCurveY : Number,
   PointOnCurveZ : Number
}
COM native C++ 
HRESULT GetClosestPointOn( 
   DOUBLE GivenPointX,
   DOUBLE GivenPointY,
   DOUBLE GivenPointZ,
   DOUBLE* PointOnCurveX,
   DOUBLE* PointOnCurveY,
   DOUBLE* PointOnCurveZ
) 
C++ 
DSRESULT GetClosestPointOn( 
   double GivenPointX,
   double GivenPointY,
   double GivenPointZ,
   double* PointOnCurveX,
   double* PointOnCurveY,
   double* PointOnCurveZ
) 

Parameters

GivenPointX
x coordinate of the point
GivenPointY
y coordinate of the point
GivenPointZ
z coordinate of the point
PointOnCurveX[out]
x coordinate of the point on the 2D PolyLine that is closest to the specified point
PointOnCurveY[out]
y coordinate of the point on the 2D PolyLine that is closest to the specified point
PointOnCurveZ[out] or Return Value
z coordinate of the point on the 2D PolyLine that is closest to the specified point
 

See Also

Availability

DraftSight V1R1.3