Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<PointD> Bézier(PointD, PointD, PointD, PointD, int)

  • Declared in: RT.Modeling.Md

Declaration

public static IEnumerable<PointD> Bézier(
    PointD start,
    PointD control1,
    PointD control2,
    PointD end,
    int steps
)

Summary

Generates the points along a cubic Bézier curve. The points are equidistant in t-space, meaning they are not geometrically equidistant, nor does this ensure a uniform 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.
intsteps Number of steps in t-space to subdivide the curve into.

Returns

A collection of 2D points.