API Reference > OdGe Classes > OdGeLineSeg2d Class > OdGeLineSeg2d Methods > set Method > OdGeLineSeg2d::set Method (OdGeCurve2d&, OdGeCurve2d&, double&, double&, bool&)
OdGeLineSeg2d::set Method (OdGeCurve2d&, OdGeCurve2d&, double&, double&, bool&)
Syntax
C++
OdGeLineSeg2d& set(const OdGeCurve2d& curve1, const OdGeCurve2d& curve2, double& param1, double& param2, bool& success);
Parameters 
Description 
const OdGeCurve2d& curve1 
[in] First 2D curve to which a constructed line segment must be tangent.  
const OdGeCurve2d& curve2 
[in] Second 2D curve to which a constructed line segment must be tangent.  
double& param1 
[in] Point on curve1 where this line segment is tangent to curve1.  
double& param2 
[in] Point on curve2 where this line segment is tangent to curve2.  
bool& success 
[out] Receives true if and only if the tangent was constructed. If false, this line segment is unchanged. 

Reference to this OdGeLineSeg2d object.

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

 

Constructs a tangent line segment between curve1 and curve2. Points param1 and param2 are the approximate tangent points on curve1 and curve2 respectively.

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