API Reference > OdGe Classes > OdGeLineSeg2d Class > OdGeLineSeg2d Methods > set Method > OdGeLineSeg2d::set Method (OdGeCurve2d&, OdGePoint2d&, double&, bool&)
OdGeLineSeg2d::set Method (OdGeCurve2d&, OdGePoint2d&, double&, bool&)
Syntax
C++
OdGeLineSeg2d& set(const OdGeCurve2d& curve, const OdGePoint2d& point, double& param, bool& success);
Parameters 
Description 
const OdGeCurve2d& curve 
[in] 2D curve to which the constructed line segment must be tangent.  
const OdGePoint2d& point 
[in] 2D point at which the constructed line segment is tangent to the specified curve.  
double& param 
[in] Parameter of the point on curve where this line segment is tangent to the curve.  
bool& success 
[out] Receives true if and only if the tangent was constructed. If false, this line segment is unchanged. 

Sets the parameters for this line according to the arguments, and returns a reference to this line. 

 

curve and point construct a line segment starting at point, and tangent to curve. param is the approximate tangent point on curve.

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