Click or drag to resize
Ab4d.SharpEngine logo

BezierCurve Methods

The BezierCurve type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreateBezierCurvePositions(Vector3, Int32) Returns an array of 3D points that define the Bezier curve with the specified control points (i.e., positions of points on the curve and tangent control points).
Public methodStatic memberCreateBezierCurvePositions(Vector3, Single, Single, Int32) Returns an array of 3D points that define the Bezier curve with the specified control points (i.e., positions of points on the curve and tangent control points). The curve positions are created using an adaptive algorithm that adds more points where the curvature is higher. This takes longer to compute than when using fixed positionsPerSegment, but generates smoother curves with less positions.
Public methodStatic memberCreateBezierCurvePositionsThroughPoints(Vector3, Int32, Single) Returns an array of 3D points that define the Bezier curve that passes through the specified positions. The curve positions are created using a fixed number of positions per segment. This is very fast to compute, but can generate too many points along nearly straight sections and too few where the curve bends sharply.
Public methodStatic memberCreateBezierCurvePositionsThroughPoints(Vector3, Single, Single, Int32) Returns an array of 3D points that define the Bezier curve that passes through the specified positions. The curve positions are created using an adaptive algorithm that adds more points where the curvature is higher. This takes longer to compute than when using fixed positionsPerSegment, but generates smoother curves with less positions.
Public methodStatic memberCreateBezierCurvePositionsThroughPoints(Vector3, Single, Single, Single, Int32) Returns an array of 3D points that define the Bezier curve that passes through the specified positions. The curve positions are created using an adaptive algorithm that adds more points where the curvature is higher. This takes longer to compute than when using fixed positionsPerSegment, but generates smoother curves with less positions.
Public methodStatic memberCreateBezierCurveThroughPoints 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.
Public methodCreateCurvePositions(Int32) Returns a Vector3[] array that defines the Bezier curve. The curve positions are created using a fixed number of positions per segment. This is very fast to compute, but can generate too many points along nearly straight sections and too few where the curve bends sharply.
Public methodCreateCurvePositions(Single, Single, Int32) Returns a Vector3[] array that defines the Bezier curve. The curve positions are created using an adaptive algorithm that adds more points where the curvature is higher. This takes longer to compute than when using fixed positionsPerSegment, but generates smoother curves with less positions.
Public methodGetPositionOnCurve Returns a 3D point that lies on the Bezier curve. The t argument can have any value between 0 to 1, with 0 corresponding to the first control point and 1 corresponding to the last control point.
Top
See Also