- Declared in: RT.Util.Geometry.GeomUt
Declaration
public static IEnumerable<PointD> SmoothCurve(
double startT,
double endT,
Func<double, PointD> fnc,
double smoothness
)
Summary
Given a parametrized curve, generates a series of points along the curve such that no individual segment is
more than
smoothness away from the true curve.
Parameters
double | startT |
Value for fnc at which the curve should start. |
double | endT |
Value for fnc at which the curve should end. |
Func<double, PointD> | fnc |
Function that defines the curve by converting a parameter to a point. |
double | smoothness |
Maximum amount by which the line segments are allowed to deviate from the curve. |