|
BezierCurveCreateBezierCurvePositionsThroughPoints Method |
Returns an array of 3D points that define the Bezier curve that passes through the specified positions.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static Vector3[] CreateBezierCurvePositionsThroughPoints(
Vector3[] curvePositions,
int positionsPerSegment = 30,
float curveScale = 0,25f
)
Parameters
- curvePositions Vector3
- Array of points on the curve.
- positionsPerSegment Int32 (Optional)
- Number of additional points per curve segment to make the curve smooth - larger value results in a smoother curve. Default value is 30.
- curveScale Single (Optional)
- Curve scale that defines how far from the curve positions the tangent control points are defined, therefore influencing the curvature of the curve. Default value is 0.25
Return Value
Vector3A Vector3[] array that defines the Bezier curve.
See Also