API Reference > OdDb Classes > OdDbEllipse Class > OdDbEllipse Methods > OdDbEllipse::setEndAngle Method
OdDbEllipse::setEndAngle Method
Syntax
C++
void setEndAngle(double endAngle);
Parameters 
Description 
double endAngle 
[in] End angle as a Double value. 

Sets the end angle for the elliptical figure (ellipse or arc) in the range ±2PI radians (DXF 51). A positive value specifies the angle measured from the major axis counterclockwise. A negative value specifies the angle measured from the major axis clockwise. The initial value is 2PI by default. 

 

If an angle value is negative, this method automatically converts it to the positive equivalent. If an angle value is more than 2PI, this method automatically convertes it to the range 0 to 2PI. When (StartAngle = 0) and (EndAngle = Oda2PI) and (EndAngle - StartAngle) > 1e-6, the figure is closed, that is an ellipse.

Example of Working with the Elliptical Arc 

Specific Elliptical Arc Properties 

OdDbEllipse::endAngle(), OdDbEllipse::setStartAngle() methods

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