2019-09-28 21:27:48 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Toolbox.Library.Animations
|
|
|
|
|
{
|
|
|
|
|
public class STKeyFrame
|
|
|
|
|
{
|
|
|
|
|
public virtual float Frame { get; set; }
|
|
|
|
|
public virtual float Value { get; set; }
|
|
|
|
|
|
2019-10-05 17:25:28 +00:00
|
|
|
|
public virtual float Slope { get; set; }
|
2019-09-28 21:27:48 +00:00
|
|
|
|
|
2019-11-26 23:01:39 +00:00
|
|
|
|
public STKeyFrame() { }
|
|
|
|
|
|
|
|
|
|
public STKeyFrame(int frame, float value) {
|
|
|
|
|
Frame = frame;
|
|
|
|
|
Value = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public STKeyFrame(float frame, float value) {
|
|
|
|
|
Frame = frame;
|
|
|
|
|
Value = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-10 00:27:56 +00:00
|
|
|
|
public class STBezierKeyFrame : STKeyFrame
|
|
|
|
|
{
|
|
|
|
|
public float SlopeIn;
|
|
|
|
|
public float SlopeOut;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-17 02:04:02 +00:00
|
|
|
|
public class STHermiteCubicKeyFrame : STHermiteKeyFrame
|
2019-11-26 23:01:39 +00:00
|
|
|
|
{
|
2020-01-17 02:04:02 +00:00
|
|
|
|
public float Coef0 { get; set; }
|
|
|
|
|
public float Coef1 { get; set; }
|
|
|
|
|
public float Coef2 { get; set; }
|
|
|
|
|
public float Coef3 { get; set; }
|
2019-09-28 21:27:48 +00:00
|
|
|
|
}
|
2019-11-26 23:01:39 +00:00
|
|
|
|
|
|
|
|
|
public class STHermiteKeyFrame : STKeyFrame
|
|
|
|
|
{
|
|
|
|
|
public virtual float TangentIn { get; set; }
|
|
|
|
|
public virtual float TangentOut { get; set; }
|
|
|
|
|
}
|
2019-09-28 21:27:48 +00:00
|
|
|
|
}
|