API Reference > OdGe Classes > OdGeCircArc2d Class > OdGeCircArc2d Methods > set Method > OdGeCircArc2d::set Method (OdGePoint2d&, double, double, double, OdGeVector2d&, bool)
OdGeCircArc2d::set Method (OdGePoint2d&, double, double, double, OdGeVector2d&, bool)
Syntax
C++
OdGeCircArc2d& set(const OdGePoint2d& center, double radius, double startAng, double endAng, const OdGeVector2d& refVec = OdGeVector2d::kXAxis, bool isClockWise = false);
Parameters 
Description 
const OdGePoint2d& center 
[in] Center of arc.  
double radius 
[in] Radius of arc.  
double startAng 
[in] Starting angle of arc.  
double endAng 
[in] Ending angle of arc.  
const OdGeVector2d& refVec = OdGeVector2d::kXAxis 
[in] The reference vector defining arc angle 0.  
bool isClockWise = false 
[in] If true, the arc is drawn clockwise, otherwise, counterclockwise. 

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

 

To construct a circle, set endAng = startAng + Oda2PI 

startAng must be less than endAng. All angles are expressed in radians.

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