API Reference > OdGe Classes > OdGeCircArc2d Class > OdGeCircArc2d Constructor > OdGeCircArc2d::OdGeCircArc2d Constructor (OdGePoint2d&, OdGePoint2d&, double, bool)
OdGeCircArc2d::OdGeCircArc2d Constructor (OdGePoint2d&, OdGePoint2d&, double, bool)
Syntax
C++
OdGeCircArc2d(const OdGePoint2d& startPoint, const OdGePoint2d& endPoint, double bulge, bool bulgeFlag = true);
Parameters 
Description 
const OdGePoint2d& startPoint 
[in] Startpoint of an arc.  
const OdGePoint2d& endPoint 
[in] Endpoint of an arc.  
double bulge 
[in] Bulge distance.  
bool bulgeFlag = true 
[in] Specifies how to interpret bulge distance for arc calculation. 

details Constructor for the OdGeCircArc2d class.

The constructor creates an arc with the specified parameters. 

If a line is drawn between startPoint and endPoint, the distance between this line and the midpoint of the constructed arc is equal to the bulge distance. If bulgeFlag is true, the bulge is interpreted as the maximum distance between the arc and the chord between the two input points. If bulgeFlag is false, the bulge is interpreted as the tangent of 1/4 the included angle (tan(ang/4)), where ang is the angle of the arc segment between the two input points. The direction of the constructed arc is always counterclockwise. This constructor always constructs a bounded arc and cannot be used to construct a full circle.

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