BezierCurves.BezierCurve3D.AddKeyPoint C# (CSharp) 메소드

AddKeyPoint() 공개 메소드

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

Usage 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