Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbEllipse::setEndParam Method
Syntax
C++
OdResult setEndParam(double endParam);

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. 

 

Parameters
Description
endParam
[in] End parameter as a Double value in radians.

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) or |EndParam - StartParam| <= 1e-7, the figure is closed, that is an ellipse.

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