JD2022-TU1/main/tools/framework/JD.Timeline/Model/Curves/CurveConversionExtensions.cs

22 lines
No EOL
602 B
C#

using JD.Timeline.View.CurveEditor;
using TeaBox.Editors.Curves;
using JD.Serialization;
namespace JD.Timeline.Model.Curves
{
/// <summary>
/// TODO : Cleanup curves (hard to understand how to convert from the model object to the editor one).
/// </summary>
public static class CurveConversionExtensions
{
public static KeyFloat GetKey(this CurvePoint point)
{
return (KeyFloat)point.Tag;
}
public static BezierCurveFloat GetCurve(this CurvePoint point)
{
return ((ClipCurve) point.Curve).Model;
}
}
}