Class Tween
Namespace: AppMana.InteractionToolkit.Animation
A class used to manually tween values (or find values based on curves). Many MaterialUI components make use of this class.
public static class Tween
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Bounce(float, float, float, float)
Evaluates a point on a bounce tween to return a value.
public static float Bounce(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
Bounce(Vector2, Vector2, float, float)
Evaluates a point on a bounce tween to return a value.
public static Vector2 Bounce(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
Bounce(Vector3, Vector3, float, float)
Evaluates a point on a bounce tween to return a value.
public static Vector3 Bounce(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
Bounce(Color, Color, float, float)
Evaluates a point on a bounce tween to return a value.
public static Color Bounce(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
CheckCurve(AnimationCurve)
Formats an AnimationCurve's parameters to be used by the 'Evaluate' method. Clamps the min/max and time to 0-1 and checks that there is a 'start' and 'end' key.
public static AnimationCurve CheckCurve(AnimationCurve curve)
Parameters
curve AnimationCurve
The curve to clamp.
Returns
AnimationCurve
The formatted AnimationCurve.
CubeIn(float, float, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases over duration.
public static float CubeIn(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
CubeIn(Vector2, Vector2, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases over duration.
public static Vector2 CubeIn(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
CubeIn(Vector3, Vector3, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases over duration.
public static Vector3 CubeIn(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
CubeIn(Color, Color, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases over duration.
public static Color CubeIn(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
CubeInOut(float, float, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases then decreases over duration.
public static float CubeInOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
CubeInOut(Vector2, Vector2, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases then decreases over duration.
public static Vector2 CubeInOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
CubeInOut(Vector3, Vector3, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases then decreases over duration.
public static Vector3 CubeInOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
CubeInOut(Color, Color, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' increases then decreases over duration.
public static Color CubeInOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
CubeOut(float, float, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' decreases over duration.
public static float CubeOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
CubeOut(Vector2, Vector2, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' decreases over duration.
public static Vector2 CubeOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
CubeOut(Vector3, Vector3, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' decreases over duration.
public static Vector3 CubeOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
CubeOut(Color, Color, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' decreases over duration.
public static Color CubeOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
CubeSoftOut(float, float, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' softly decreases over duration.
public static float CubeSoftOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
CubeSoftOut(Vector2, Vector2, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' softly decreases over duration.
public static Vector2 CubeSoftOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
CubeSoftOut(Vector3, Vector3, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' softly decreases over duration.
public static Vector3 CubeSoftOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
CubeSoftOut(Color, Color, float, float)
Evaluates a point on a cubic tween to return a value. 'Velocity' softly decreases over duration.
public static Color CubeSoftOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
Evaluate(TweenType, float, float, float, float, AnimationCurve)
Returns a float evaluated from a TweenType curve or AnimationCurve.
public static float Evaluate(Tween.TweenType type, float startValue, float endValue, float time, float duration, AnimationCurve curve = null)
Parameters
The TweenType to use, set to 'Custom' to use an AnimationCurve.
startValue float
The start value of the tween.
endValue float
Th end value of the tween.
time float
The current time in the tween.
duration float
The duration of the tween.
curve AnimationCurve
The custom AnimationCurve to use, if desired.
Returns
The calulated value.
GetAnimCurveKeys(TweenType)
Generates a set of AnimationCurve keys from a tween type. Only needed if you want to create your own AnimationCurves from tween functions.
public static float[][] GetAnimCurveKeys(Tween.TweenType tweenType)
Parameters
Type of the tween.
Returns
float[][]
The generated keyset.
Linear(float, float, float, float)
Evaluates a point on a linear curve to return a value.
public static float Linear(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
Linear(Vector2, Vector2, float, float)
Evaluates a point on a linear curve to return a value.
public static Vector2 Linear(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
Linear(Vector3, Vector3, float, float)
Evaluates a point on a linear curve to return a value.
public static Vector3 Linear(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
Linear(Color, Color, float, float)
Evaluates a point on a linear curve to return a value.
public static Color Linear(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
Overshoot(float, float, float, float)
Evaluates a point on an overshoot tween to return a value.
public static float Overshoot(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
Overshoot(Vector2, Vector2, float, float)
Evaluates a point on an overshoot tween to return a value.
public static Vector2 Overshoot(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
Overshoot(Vector3, Vector3, float, float)
Evaluates a point on an overshoot tween to return a value.
public static Vector3 Overshoot(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
Overshoot(Color, Color, float, float)
Evaluates a point on an overshoot tween to return a value.
public static Color Overshoot(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
QuintIn(float, float, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases over duration.
public static float QuintIn(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
QuintIn(Vector2, Vector2, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases over duration.
public static Vector2 QuintIn(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
QuintIn(Vector3, Vector3, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases over duration.
public static Vector3 QuintIn(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
QuintIn(Color, Color, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases over duration.
public static Color QuintIn(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
QuintInOut(float, float, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases then decreases over duration.
public static float QuintInOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
QuintInOut(Vector2, Vector2, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases then decreases over duration.
public static Vector2 QuintInOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
QuintInOut(Vector3, Vector3, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases then decreases over duration.
public static Vector3 QuintInOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
QuintInOut(Color, Color, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' increases then decreases over duration.
public static Color QuintInOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
QuintOut(float, float, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' decreases over duration.
public static float QuintOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
QuintOut(Vector2, Vector2, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' decreases over duration.
public static Vector2 QuintOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
QuintOut(Vector3, Vector3, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' decreases over duration.
public static Vector3 QuintOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
QuintOut(Color, Color, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' decreases over duration.
public static Color QuintOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
QuintSoftOut(float, float, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' softly decreases over duration.
public static float QuintSoftOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
QuintSoftOut(Vector2, Vector2, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' softly decreases over duration.
public static Vector2 QuintSoftOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
QuintSoftOut(Vector3, Vector3, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' softly decreases over duration.
public static Vector3 QuintSoftOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
QuintSoftOut(Color, Color, float, float)
Evaluates a point on a quintic tween to return a value. 'Velocity' softly decreases over duration.
public static Color QuintSoftOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
SeptIn(float, float, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases over duration.
public static float SeptIn(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
SeptIn(Vector2, Vector2, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases over duration.
public static Vector2 SeptIn(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
SeptIn(Vector3, Vector3, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases over duration.
public static Vector3 SeptIn(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
SeptIn(Color, Color, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases over duration.
public static Color SeptIn(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
SeptInOut(float, float, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases then decreases over duration.
public static float SeptInOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
SeptInOut(Vector2, Vector2, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases then decreases over duration.
public static Vector2 SeptInOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
SeptInOut(Vector3, Vector3, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases then decreases over duration.
public static Vector3 SeptInOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
SeptInOut(Color, Color, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' increases then decreases over duration.
public static Color SeptInOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
SeptOut(float, float, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' decreases over duration.
public static float SeptOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
SeptOut(Vector2, Vector2, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' decreases over duration.
public static Vector2 SeptOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
SeptOut(Vector3, Vector3, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' decreases over duration.
public static Vector3 SeptOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
SeptOut(Color, Color, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' decreases over duration.
public static Color SeptOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
SeptSoftOut(float, float, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' softly decreases over duration.
public static float SeptSoftOut(float startValue, float endValue, float time, float duration)
Parameters
startValue float
The value at the start of the tween.
endValue float
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
The calculated value.
SeptSoftOut(Vector2, Vector2, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' softly decreases over duration.
public static Vector2 SeptSoftOut(Vector2 startValue, Vector2 endValue, float time, float duration)
Parameters
startValue Vector2
The value at the start of the tween.
endValue Vector2
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector2
The calculated value.
SeptSoftOut(Vector3, Vector3, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' softly decreases over duration.
public static Vector3 SeptSoftOut(Vector3 startValue, Vector3 endValue, float time, float duration)
Parameters
startValue Vector3
The value at the start of the tween.
endValue Vector3
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Vector3
The calculated value.
SeptSoftOut(Color, Color, float, float)
Evaluates a point on a septic tween to return a value. 'Velocity' softly decreases over duration.
public static Color SeptSoftOut(Color startValue, Color endValue, float time, float duration)
Parameters
startValue Color
The value at the start of the tween.
endValue Color
The value at the end of the tween.
time float
The current time of the tween.
duration float
The total duration of the tween.
Returns
Color
The calculated value.
Sin(float, float, float)
Evaluates a point on a sin wave to return a value.
public static float Sin(float startValue, float amplitude, float time)
Parameters
startValue float
The value at the start of the tween.
amplitude float
The amplitude (min/max values) of the tween.
time float
The current time of the tween.
Returns
The calculated value.
Sin(Vector2, Vector2, float)
Evaluates a point on a sin wave to return a value.
public static Vector2 Sin(Vector2 startValue, Vector2 amplitude, float time)
Parameters
startValue Vector2
The value at the start of the tween.
amplitude Vector2
The amplitude (min/max values) of the tween.
time float
The current time of the tween.
Returns
Vector2
The calculated value.
Sin(Vector3, Vector3, float)
Evaluates a point on a sin wave to return a value.
public static Vector3 Sin(Vector3 startValue, Vector3 amplitude, float time)
Parameters
startValue Vector3
The value at the start of the tween.
amplitude Vector3
The amplitude (min/max values) of the tween.
time float
The current time of the tween.
Returns
Vector3
The calculated value.
Sin(Color, Color, float)
Evaluates a point on a sin wave to return a value.
public static Color Sin(Color startValue, Color amplitude, float time)
Parameters
startValue Color
The value at the start of the tween.
amplitude Color
The amplitude (min/max values) of the tween.
time float
The current time of the tween.
Returns
Color
The calculated value.
