BezierCurves.BezierCurve3D.AddKeyPoint C# (CSharp) Method

AddKeyPoint() public method

Adds a key point at the end of the curve
public AddKeyPoint ( ) : BezierPoint3D
return BezierPoint3D
        public BezierPoint3D AddKeyPoint()
        {
            return this.AddKeyPointAt(this.KeyPointsCount);
        }

Usage Example

Example #1
0
        private static void AddDefaultPoints(BezierCurve3D curve)
        {
            BezierPoint3D startPoint = curve.AddKeyPoint();

            startPoint.LocalPosition           = new Vector3(-1f, 0f, 0f);
            startPoint.LeftHandleLocalPosition = new Vector3(-0.35f, -0.35f, 0f);

            BezierPoint3D endPoint = curve.AddKeyPoint();

            endPoint.LocalPosition           = new Vector3(1f, 0f, 0f);
            endPoint.LeftHandleLocalPosition = new Vector3(-0.35f, 0.35f, 0f);
        }
All Usage Examples Of BezierCurves.BezierCurve3D::AddKeyPoint