Click or drag to resize
Ab4d.SharpEngine logo

BezierCurveCreateBezierCurveThroughPoints Method

Returns an instance of BezierCurve that passes through all specified positions. The method automatically computes all required control points (tangent positions) based on the specified curve scale.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static BezierCurve CreateBezierCurveThroughPoints(
	Vector3[] curvePositions,
	float curveScale = 0,25f
)

Parameters

curvePositions  Vector3
Array of positions on the curve
curveScale  Single  (Optional)
Controls the scale of the curve. The larger the curveScale, the smaller the curvature at that Bezier points. Default value is 0.25

Return Value

BezierCurve
instance of BezierCurve
See Also