|
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.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax 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
BezierCurveinstance of BezierCurve
See Also