From 9d786ab096ed36ea384e03ee5cea498790e31eec Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sun, 17 Jul 2022 20:26:28 +0200 Subject: wip --- Samples/AnimTest/Animation/AngleAnimation.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Samples/AnimTest/Animation/AngleAnimation.cs (limited to 'Samples/AnimTest/Animation/AngleAnimation.cs') 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 +// +// 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 + } +} + -- cgit v1.3.1-4-g156e