GetClosestPointToLinearObject Method (IMathLine) Send Feedback
See Also 
ClosestPoint[out]
Point on the mathematical line that is closest to LinearObject
LinearObject[out]
Linear object
PointOnLinearObject[out]
Point on LinearObject that is closest to the mathematical line
Gets the point on the mathematical line that is closest to the specified linear object, and the gets point on the specified linear object that is closest to the mathematical line.

Syntax

Visual Basic 
Function GetClosestPointToLinearObject( _
   ByVal LinearObject As MathLine, _
   ByRef PointOnLinearObject As MathPoint _
) As MathPoint
C# 
MathPoint GetClosestPointToLinearObject( 
   MathLine LinearObject,
   out MathPoint PointOnLinearObject
)
JavaScript 
GetClosestPointToLinearObject( 
   LinearObject : dsMathLine
) : {
   PointOnLinearObject : dsMathPoint,
   ClosestPoint : Number
}
COM native C++ 
HRESULT GetClosestPointToLinearObject( 
   IMathLine* LinearObject,
   IMathPoint** PointOnLinearObject,
   IMathPoint** ClosestPoint
) 
C++ 
DSRESULT GetClosestPointToLinearObject( 
   dsMathLine* LinearObject,
   dsMathPoint** PointOnLinearObject,
   dsMathPoint** ClosestPoint
) 

Parameters

LinearObject[out]
Linear object
PointOnLinearObject[out]
Point on LinearObject that is closest to the mathematical line
ClosestPoint[out] or Return Value
Point on the mathematical line that is closest to LinearObject
 

See Also

Availability

DraftSight V1R5.0