API Reference > OdGe Classes > OdGePlanarEnt Class > OdGePlanarEnt Methods > OdGePlanarEnt::closestPointToLinearEnt Method
OdGePlanarEnt::closestPointToLinearEnt Method
Syntax
C++
OdGePoint3d closestPointToLinearEnt(const OdGeLinearEnt3d& line, OdGePoint3d& pointOnLine, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGeLinearEnt3d& line 
[in] A 3D linear entity for which the closest point is computed.  
OdGePoint3d& pointOnLine 
[out] Receives the closest point on the linear entity.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Returns the point on this plane that is closest to the specified linear entity, and the point on the linear entity that is closest to this plane. 

 

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