API Reference > OdDg Classes > OdDgCurveElement2d Class > OdDgCurveElement2d Methods > OdDgCurveElement2d::getDistAtPoint Method
OdDgCurveElement2d::getDistAtPoint Method
Syntax
C++
virtual OdResult getDistAtPoint(const OdGePoint2d& pointOnCurve, double& dist) const;
Parameters 
Description 
const OdGePoint2d& pointOnCurve 
[in] Point on the curve.  
double& dist 
[out] Receives the distance. 

Returns eOk if successful, or an appropriate error code if not.

Returns the distance along this Curve object from its start point to the specified WCS point. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.