-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #885 from eksime/tweener-thread-safety
thread safety changes for tweener class
- Loading branch information
Showing
4 changed files
with
611 additions
and
719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
using System; | ||
namespace Glide { | ||
using System; | ||
|
||
namespace Glide | ||
{ | ||
public abstract class MemberLerper | ||
{ | ||
[Flags] | ||
public enum Behavior | ||
{ | ||
None = 0, | ||
Reflect = 1, | ||
Rotation = 2, | ||
RotationRadians = 4, | ||
RotationDegrees = 8, | ||
Round = 16 | ||
} | ||
|
||
protected const float DEG = 180f / (float) Math.PI; | ||
protected const float RAD = (float) Math.PI / 180f; | ||
|
||
public abstract void Initialize(Object fromValue, Object toValue, Behavior behavior); | ||
public abstract object Interpolate(float t, object currentValue, Behavior behavior); | ||
} | ||
public abstract class MemberLerper { | ||
[Flags] | ||
public enum Behavior { | ||
None = 0, | ||
Reflect = 1, | ||
Rotation = 2, | ||
RotationRadians = 4, | ||
RotationDegrees = 8, | ||
Round = 16 | ||
} | ||
|
||
protected const float DEG = 180f / (float)Math.PI; | ||
protected const float RAD = (float)Math.PI / 180f; | ||
|
||
public abstract void Initialize(Object fromValue, Object toValue, Behavior behavior); | ||
public abstract object Interpolate(float t, object currentValue, Behavior behavior); | ||
} | ||
} |
Oops, something went wrong.