aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/AnimTest/Animation/AngleAnimation.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-07-17 20:26:28 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-07-17 20:26:28 +0200
commit9d786ab096ed36ea384e03ee5cea498790e31eec (patch)
treeadee54b5b90a35238d5794e9ffd3ebcf65798a06 /Samples/AnimTest/Animation/AngleAnimation.cs
parent57daad000aa31c7bcfa1f76b90d40da5a21da041 (diff)
wip
Diffstat (limited to 'Samples/AnimTest/Animation/AngleAnimation.cs')
-rw-r--r--Samples/AnimTest/Animation/AngleAnimation.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Samples/AnimTest/Animation/AngleAnimation.cs b/Samples/AnimTest/Animation/AngleAnimation.cs
new file mode 100644
index 00000000..02faef76
--- /dev/null
+++ b/Samples/AnimTest/Animation/AngleAnimation.cs
@@ -0,0 +1,19 @@
+// Copyright (c) 2015-2021 Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
+//
+// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
+
+using System;
+
+namespace vke
+{
+ public class AngleAnimation : FloatAnimation2
+ {
+ #region CTOR
+ public AngleAnimation(Object instance, string PropertyName, float Target, int stepCount = 20) :
+ base (instance,PropertyName,MathHelper.NormalizeAngle(Target),stepCount) {
+ initialValue = MathHelper.NormalizeAngle (initialValue);
+ }
+ #endregion
+ }
+}
+