Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<PointD> SmoothBézier(PointD, PointD, PointD, PointD, double)

  • Declared in: RT.Modeling.Md

Declaration

public static IEnumerable<PointD> SmoothBézier(
    PointD start,
    PointD control1,
    PointD control2,
    PointD end,
    double smoothness
)

Summary

Generates points along a cubic Bézier curve in a way that focuses on consistent smoothness.

Parameters

PointDstart The start point of the Bézier curve.
PointDcontrol1 First control point.
PointDcontrol2 Second control point.
PointDend The end point of the Bézier curve.
doublesmoothness A smaller value produces greater smoothness. The curve is subdivided into line segments until the mid-point of a line segment is no more than smoothness away from the real curve.

Returns

A collection of 2D points.