Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

  • Declared in: RT.Modeling.Md

Declaration

public static IEnumerable<Pt> Bézier(
    Pt start,
    Pt control1,
    Pt control2,
    Pt 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

Ptstart The start point of the Bézier curve.
Ptcontrol1 First control point.
Ptcontrol2 Second control point.
Ptend The end point of the Bézier curve.
intsteps Number of steps in t-space to subdivide the curve into.

Returns

A collection of 3D points.