Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<PointD> SmoothCurve(double, double, Func<double, PointD>, double)

  • 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

doublestartT Value for fnc at which the curve should start.
doubleendT 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.
doublesmoothness Maximum amount by which the line segments are allowed to deviate from the curve.