Exemplo n.º 1
0
        internal static NativeCurve2 *CopyCurve2ToNativeCurve2(Curve2 managedCurve)
        {
            NativeCurve *x = CopyCurveToNativeCurve(managedCurve.X);
            NativeCurve *y = CopyCurveToNativeCurve(managedCurve.Y);

            return(util_Curve2_Ctor(x, y));
        }
 /// <summary>
 /// Create a second-order Delegate Curve
 /// </summary>
 /// <param name="curveA">First instance of `EasingCurve`</param>
 /// <param name="curveB">Second instance of `EasingCurve`</param>
 /// <param name="curveFunc2">Second-order combination function</param>
 public DelegateCurve(EasingCurve curveA, EasingCurve curveB, Curve2 curveFunc2)
 {
     this.curveA     = curveA;
     this.curveB     = curveB;
     this.curveFunc2 = curveFunc2;
     this.order      = Order.Two;
 }
Exemplo n.º 3
0
 public FrameIdx_Key(Curve2 curve)
 {
     this.curve = curve;
 }
Exemplo n.º 4
0
 public void SetRandomCurve(Curve2 curve)
 {
     Curve          = curve;
     TwoDimensions  = true;
     StartValueType = StartingValue.RandomCurve;
 }
Exemplo n.º 5
0
 public void SetRandomCurve(Curve curve)
 {
     Curve          = new Curve2(curve, curve);
     TwoDimensions  = false;
     StartValueType = StartingValue.RandomCurve;
 }