CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Functions
OdGeEllipArc Namespace Reference

Functions

double calibrateAngle (double val, double input)
 
double angleFromParam (double param, double radiusRatio)
 
double paramFromAngle (double angle, double radiusRatio)
 

Detailed Description

Elliptical arc helper functions.

<group TD_Namespaces>

Function Documentation

◆ angleFromParam()

double OdGeEllipArc::angleFromParam ( double  param,
double  radiusRatio 
)
inline

Converts an elliptical parameter to an angle.

Parameters
param[in] Elliptical parameter.
radiusRatio[in] The minorRadius:majorRadius ratio of the ellipse.
Remarks
The angle of a point on an ellipse corresponding to a parameter of the ellipse is determined by projecting a vector perpendicular to the major axis from the parameter point on the parameter circle. The angle from the major axis to the intersection of the vector with the ellipse is the desired angle.

Corresponding C++ library: TD_Ge

Definition at line 74 of file GeEllipArc.h.

◆ calibrateAngle()

double OdGeEllipArc::calibrateAngle ( double  val,
double  input 
)
inline

calibrates value, so that it is "near" input (not farther than OdaPi) (value and input should not be farther than OdaPi/2 modulo Oda2Pi, for the function to work correcly)

Definition at line 42 of file GeEllipArc.h.

◆ paramFromAngle()

double OdGeEllipArc::paramFromAngle ( double  angle,
double  radiusRatio 
)
inline

Converts an elliptical angle to a parameter.

Parameters
angle[in] Elliptical angle.
radiusRatio[in] The minorRadius:majorRadius ratio of the ellipse.
Remarks
The parameter of a point on an ellipse corresponding to the angle of the point is determined by projecting a vector perpendicular to the major axis from the point on the ellipse to the parameter circle. The angle from the major axis to the intersection of the vector with the circle is the desired parameter.

Corresponding C++ library: TD_Ge

Definition at line 101 of file GeEllipArc.h.