Class InterpolationUtilities
Static class containing interpolation-related utility functions.
Inheritance
InterpolationUtilities
Assembly: cs.temp.dll.dll
public static class InterpolationUtilities
Methods
Computes an exponential coefficient following the given formula: 1 - .5^(dTime/hLife)
Declaration
public static float ExpCoefficient(float hLife, float dTime)
Parameters
Returns
Computes an exponential coefficient following the given formula: 1 - .5^(dTime/hLife)
Declaration
public static float ExpCoefficient(float hLife, float dTime)
Parameters
Returns
Declaration
public static Color ExpDecay(Color from, Color to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Color |
from |
|
Color |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns
Declaration
public static Color ExpDecay(Color from, Color to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Color |
from |
|
Color |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns
Declaration
public static Quaternion ExpDecay(Quaternion from, Quaternion to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Quaternion |
from |
|
Quaternion |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns
Type |
Description |
Quaternion |
|
Declaration
public static Quaternion ExpDecay(Quaternion from, Quaternion to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Quaternion |
from |
|
Quaternion |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns
Type |
Description |
Quaternion |
|
Declaration
public static float ExpDecay(float from, float to, float hLife, float dTime)
Parameters
Returns
Declaration
public static float ExpDecay(float from, float to, float hLife, float dTime)
Parameters
Returns
Declaration
public static Vector2 ExpDecay(Vector2 from, Vector2 to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Vector2 |
from |
|
Vector2 |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns
Declaration
public static Vector2 ExpDecay(Vector2 from, Vector2 to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Vector2 |
from |
|
Vector2 |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns
Declaration
public static Vector3 ExpDecay(Vector3 from, Vector3 to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Vector3 |
from |
|
Vector3 |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns
Declaration
public static Vector3 ExpDecay(Vector3 from, Vector3 to, float hLife, float dTime)
Parameters
Type |
Name |
Description |
Vector3 |
from |
|
Vector3 |
to |
|
Single |
hLife |
|
Single |
dTime |
|
Returns