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

Sets the end parameter for the elliptical figure (ellipse or arc) (DXF 42). Parameter is an angle measured from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius. A positive value specifies the end parameter measured counterclockwise A negative value specifies the end parameter measured clockwise. The initial value is 2PI by default. 

 

If an parameter 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 (StartParam = 0) and (EndParam = Oda2PI) and (EndParam - StartParam) > 1e-6, the figure is closed, that is an ellipse.

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