Class EasingFunction
Represents an easing function
Inheritance
EasingFunction
Assembly: SlipeShared.dll
Syntax
public class EasingFunction
Constructors
|
Improve this Doc
View Source
EasingFunction(EasingFunction, Single, Single, Single)
Create a new easing function with different easing parameters
Declaration
public EasingFunction(EasingFunction function, float period = 0F, float amplitude = 0F, float overshoot = 0F)
Parameters
Type |
Name |
Description |
EasingFunction |
function |
The base easing function
|
Single |
period |
The period of the function
|
Single |
amplitude |
The amplitude of the function
|
Single |
overshoot |
The overshoot of the function
|
Properties
|
Improve this Doc
View Source
Amplitude
The amplitude of the easing function
Declaration
public float Amplitude { get; set; }
Property Value
|
Improve this Doc
View Source
CosineCurve
Declaration
public static EasingFunction CosineCurve { get; }
Property Value
|
Improve this Doc
View Source
InBack
Declaration
public static EasingFunction InBack { get; }
Property Value
|
Improve this Doc
View Source
InBounce
Declaration
public static EasingFunction InBounce { get; }
Property Value
|
Improve this Doc
View Source
InElastic
Declaration
public static EasingFunction InElastic { get; }
Property Value
|
Improve this Doc
View Source
InOutBack
Declaration
public static EasingFunction InOutBack { get; }
Property Value
|
Improve this Doc
View Source
InOutBounce
Declaration
public static EasingFunction InOutBounce { get; }
Property Value
|
Improve this Doc
View Source
InOutElastic
Declaration
public static EasingFunction InOutElastic { get; }
Property Value
|
Improve this Doc
View Source
InOutQuad
Declaration
public static EasingFunction InOutQuad { get; }
Property Value
|
Improve this Doc
View Source
InQuad
Declaration
public static EasingFunction InQuad { get; }
Property Value
|
Improve this Doc
View Source
Linear
Declaration
public static EasingFunction Linear { get; }
Property Value
|
Improve this Doc
View Source
Name
The name of this easing function
Declaration
public string Name { get; }
Property Value
|
Improve this Doc
View Source
OutBack
Declaration
public static EasingFunction OutBack { get; }
Property Value
|
Improve this Doc
View Source
OutBounce
Declaration
public static EasingFunction OutBounce { get; }
Property Value
|
Improve this Doc
View Source
OutElastic
Declaration
public static EasingFunction OutElastic { get; }
Property Value
|
Improve this Doc
View Source
OutInBack
Declaration
public static EasingFunction OutInBack { get; }
Property Value
|
Improve this Doc
View Source
OutInBounce
Declaration
public static EasingFunction OutInBounce { get; }
Property Value
|
Improve this Doc
View Source
OutInElastic
Declaration
public static EasingFunction OutInElastic { get; }
Property Value
|
Improve this Doc
View Source
OutInQuad
Declaration
public static EasingFunction OutInQuad { get; }
Property Value
|
Improve this Doc
View Source
OutQuad
Declaration
public static EasingFunction OutQuad { get; }
Property Value
|
Improve this Doc
View Source
Overshoot
The overshoot of the easing function
Declaration
public float Overshoot { get; set; }
Property Value
|
Improve this Doc
View Source
Period
The period of the easing function
Declaration
public float Period { get; set; }
Property Value
|
Improve this Doc
View Source
SineCurve
Declaration
public static EasingFunction SineCurve { get; }
Property Value
Methods
|
Improve this Doc
View Source
Interpolate(Single)
Get the easing value of a function at a specific moment
Declaration
public float Interpolate(float progress)
Parameters
Type |
Name |
Description |
Single |
progress |
The progress between 0 and 1
|
Returns
Type |
Description |
Single |
The easing value at this moment in the function
|
|
Improve this Doc
View Source
InterpolateVector(Vector2, Vector2, Single)
Get the easing value between two vectors
Declaration
public Vector2 InterpolateVector(Vector2 start, Vector2 end, float progress)
Parameters
Type |
Name |
Description |
Vector2 |
start |
The start vector
|
Vector2 |
end |
The end vector
|
Single |
progress |
The progress between the two vectors
|
Returns
Type |
Description |
Vector2 |
The interpolated vector between the given two
|
|
Improve this Doc
View Source
InterpolateVector(Vector3, Vector3, Single)
Get the easing value between two vectors
Declaration
public Vector3 InterpolateVector(Vector3 start, Vector3 end, float progress)
Parameters
Type |
Name |
Description |
Vector3 |
start |
The start vector
|
Vector3 |
end |
The end vector
|
Single |
progress |
The progress between the two vectors
|
Returns
Type |
Description |
Vector3 |
The interpolated vector between the given two
|