add GeometryAnimationUsingKeyFrames

This commit is contained in:
NaBian committed 2019-09-27 23:51:30 +08:00
1 parent f549793e13
commit 0e74e5b34e
12 files changed
+595 -73

No files matched your search

@@ -78,5 +78,17 @@ namespace HandyControl.Tools
return ComposeGeometry(strings, accumulated);
}
internal static double[] InterpolateGeometryValue(double[] from, double[] to, double progress)
{
var accumulated = new double[to.Length];
for (var i = 0; i < to.Length; i++)
{
var fromValue = from[i];
accumulated[i] = fromValue + (to[i] - fromValue) * progress;
}
return accumulated;
}
}
}