Click or drag to resize
Ab4d.SharpEngine logo

BezierCurve Constructor

Creates Bezier curve with the specified array of control points. Note that each curve segment requires three control points (one for the position on the curve and two to define tangents to that position).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public BezierCurve(
	Vector3[] controlPoints
)

Parameters

controlPoints  Vector3
Array of control points that define the curve. Note that each curve segment requires three control points (one for the position on the curve and two to define tangents to that position).
Remarks

Creates Bezier curve with the specified array of control points. Note that each curve segment requires three control points (one for the position on the curve and two to define tangents to that position).

To create a Bezier curve that goes through specified points and without specifying tangent positions, use the CreateBezierCurveThroughPoints(Vector3, Single). This method automatically calculates the tangent control positions based on the specified curveScale parameter. static methods.

See Also