- Declared in: RT.Util.Geometry.GeomUt
Declaration
public static IEnumerable<PointD> SmoothArc(
PointD center,
double a,
double b,
double t1,
double t2,
double smoothness
)
Summary
Generates a series of points that approximate an elliptic arc curve.
Parameters
PointD | center |
Center of the ellipse. |
double | a |
Horizontal radius of the ellipse. |
double | b |
Vertical radius of the ellipse. |
double | t1 |
Parameter at which the ellipse starts. If it’s a circle, this is the angle from the x-axis, but for ellipses
it is stretched, so it’s not the real angle. |
double | t2 |
Parameter at which the ellipse end. If it’s a circle, this is the angle from the x-axis, but for ellipses it
is stretched, so it’s not the real angle. |
double | smoothness |
Maximum amount by which the line segments are allowed to deviate from the curve. |