Click or drag to resize

BezierCurveFlattenerFlattenPolyBezierCurve(PointD2D) Method

Flattens a poly Bezier curve defined by an array of control points into a list of points.

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public IList<PointD2D> FlattenPolyBezierCurve(
	PointD2D[] bezierPoints
)

Parameters

bezierPoints  PointD2D
Control points of the poly Bezier curve. Must contain 1 + 3*k points (start point followed by k cubic segments).

Return Value

IListPointD2D
A list of points forming the polyline approximation of the Bezier curve.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when bezierPoints is null.
ArgumentExceptionThrown when array length is invalid (must be ≥ 4 and expressible as 1 + 3*k).
See Also