Example #1
0
 public static KeyframedValue <Quaternion> Add(this KeyframedValue <Quaternion> keyframes, double time, float angle, Func <double, double> easing = null)
 {
     keyframes.Add(time, new Vector3(0, 0, 1), angle, easing);
     return(keyframes);
 }
Example #2
0
 public static KeyframedValue <Vector3> Add(this KeyframedValue <Vector3> keyframes, double time, float scale, Func <double, double> easing = null)
 {
     keyframes.Add(time, new Vector3(scale), easing);
     return(keyframes);
 }
Example #3
0
 public static KeyframedValue <Quaternion> Add(this KeyframedValue <Quaternion> keyframes, double time, Vector3 axis, float angle, Func <double, double> easing = null)
 {
     keyframes.Add(time, Quaternion.FromAxisAngle(axis, angle), easing);
     return(keyframes);
 }
Example #4
0
 public static KeyframedValue <Vector2> Add(this KeyframedValue <Vector2> keyframes, double time, float x, float y, Func <double, double> easing = null)
 {
     keyframes.Add(time, new Vector2(x, y), easing);
     return(keyframes);
 }