add GeometryAnimationUsingKeyFrames
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user