aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/AnimTest/Animation/AngleAnimation.cs
blob: 02faef76eaeadf6d4f8edf1025083dc775e295e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
	}
}