另外椭圆结构为
struct UF_EVAL_ellipse_s
{
logical is_periodic; /* Is the curve periodic or not? */
double limits[2]; /* Curve limits: [0] = min; [1] = max */
double minor; /* Minor radius */
double major; /* Major radius */
double center[3]; /* Center (ABS coordinates) */
double x_axis[3]; /* Unit direction vector of the x axis (ABS) */
double y_axis[3]; /* Unit direction vector of the y axis (ABS) */
};
在ellipse_a中可以查询椭圆的任何属性。
申明一下:必须是标准的椭圆,如果是类似椭圆实际是不规则形状,此方法无效。