#include <EasingBPLib.h>
◆ EaseInBack()
| float UEasingBPLib::EaseInBack |
( |
const float | Value | ) |
|
|
static |
156{
157 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
159}
const float C3
Definition EasingBPLib.cpp:10
const float C1
Definition EasingBPLib.cpp:8
◆ EaseInBounce()
| float UEasingBPLib::EaseInBounce |
( |
const float | Value | ) |
|
|
static |
208{
209 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
211}
static float EaseOutBounce(const float Value)
Definition EasingBPLib.cpp:213
◆ EaseInCirc()
| float UEasingBPLib::EaseInCirc |
( |
const float | Value | ) |
|
|
static |
136{
137 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
138 return 1.0f - FMath::Sqrt(1.0f - FMath::Pow(
X, 2));
139}
◆ EaseInCubic()
| float UEasingBPLib::EaseInCubic |
( |
const float | Value | ) |
|
|
static |
54{
55 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
57}
◆ EaseInElastic()
| float UEasingBPLib::EaseInElastic |
( |
const float | Value | ) |
|
|
static |
176{
177 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
179 ? 0.0f
181 ? 1.0f
182 : -FMath::Pow(2.0f, 10.0f *
X - 10.0f) * FMath::Sin((
X * 10.0f - 10.75f) *
EasingValues::C4);
183}
const float C4
Definition EasingBPLib.cpp:11
◆ EaseInExpo()
| float UEasingBPLib::EaseInExpo |
( |
const float | Value | ) |
|
|
static |
108{
109 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
111 ? 0.0f
112 : FMath::Pow(2.0f, 10.0f *
X - 10.0f);
113}
◆ EaseInOutBack()
| float UEasingBPLib::EaseInOutBack |
( |
const float | Value | ) |
|
|
static |
168{
169 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
173}
Definition EasingBPLib.cpp:7
const float C2
Definition EasingBPLib.cpp:9
◆ EaseInOutBounce()
| float UEasingBPLib::EaseInOutBounce |
( |
const float | Value | ) |
|
|
static |
231{
232 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
236}
◆ EaseInOutCirc()
| float UEasingBPLib::EaseInOutCirc |
( |
const float | Value | ) |
|
|
static |
148{
149 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
151 ? (1.0f - FMath::Sqrt(1.0f - FMath::Pow(2.0f *
X, 2.0f))) / 2.0f
152 : (FMath::Sqrt(1.0f - FMath::Pow(-2.0f *
X + 2.0f, 2.0f)) + 1.0f) / 2.0f;
153}
◆ EaseInOutCubic()
| float UEasingBPLib::EaseInOutCubic |
( |
const float | Value | ) |
|
|
static |
66{
67 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
68 return X < 0.5f ? 4.0f *
X *
X *
X : 1.0f - FMath::Pow(-2.0f *
X + 2.0f, 3.0f) / 2.0f;
69}
◆ EaseInOutElastic()
| float UEasingBPLib::EaseInOutElastic |
( |
const float | Value | ) |
|
|
static |
196{
197 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
199 ? 0.0f
201 ? 1.0f
203 ? -(FMath::Pow(2.0f, 20.0f *
X - 10.0f) * FMath::Sin((20.0f *
X - 11.125f) *
EasingValues::C5)) / 2.0f
204 : (FMath::Pow(2.0f, -20.0f *
X + 10.0f) * FMath::Sin((20.0f *
X - 11.125f) *
EasingValues::
C5)) / 2.0f + 1.0f;
205}
const float C5
Definition EasingBPLib.cpp:12
◆ EaseInOutExpo()
| float UEasingBPLib::EaseInOutExpo |
( |
const float | Value | ) |
|
|
static |
124{
125 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
127 ? 0.0f
129 ? 1.0f
131 FMath::Pow(2.0f, 20.0f *
X - 10.0f) / 2.0f
132 : (2.0f - FMath::Pow(2.0f, -20.0f *
X + 10.0f)) / 2.0f;
133}
◆ EaseInOutQuad()
| float UEasingBPLib::EaseInOutQuad |
( |
const float | Value | ) |
|
|
static |
48{
49 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
50 return X < 0.5f ? 2.0f *
X *
X : 1 - FMath::Pow(-2.0f *
X + 2.0f, 2.0f) / 2.0f;
51}
◆ EaseInOutQuart()
| float UEasingBPLib::EaseInOutQuart |
( |
const float | Value | ) |
|
|
static |
84{
85 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
86 return X < 0.5f ? 8.0f *
X *
X *
X *
X : 1.0f - FMath::Pow(-2.0f *
X + 2.0f, 4.0f) / 2.0f;
87}
◆ EaseInOutQuint()
| float UEasingBPLib::EaseInOutQuint |
( |
const float | Value | ) |
|
|
static |
102{
103 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
104 return X < 0.5f ? 16.0f *
X *
X *
X *
X *
X : 1.0f - FMath::Pow(-2.0f *
X + 2.0f, 5.0f) / 2.0f;
105}
◆ EaseInOutSine()
| float UEasingBPLib::EaseInOutSine |
( |
const float | Value | ) |
|
|
static |
30{
31 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
32 return -(FMath::Cos(PI *
X) - 1) / 2;
33}
◆ EaseInQuad()
| float UEasingBPLib::EaseInQuad |
( |
const float | Value | ) |
|
|
static |
36{
37 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
39}
◆ EaseInQuart()
| float UEasingBPLib::EaseInQuart |
( |
const float | Value | ) |
|
|
static |
72{
73 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
75}
◆ EaseInQuint()
| float UEasingBPLib::EaseInQuint |
( |
const float | Value | ) |
|
|
static |
90{
91 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
92 return X *
X *
X *
X *
X;
93}
◆ EaseInSine()
| float UEasingBPLib::EaseInSine |
( |
const float | Value | ) |
|
|
static |
Easing function that implements the "ease in" sine curve.
- Parameters
-
| Value | : A value between 0.0 and 1.0 representing the normalized progress of the animation. |
- Returns
- The eased value based on the sine curve.
18{
19 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
20 return 1.0f - FMath::Cos((
X * PI) / 2.0f);
21}
◆ EaseOutBack()
| float UEasingBPLib::EaseOutBack |
( |
const float | Value | ) |
|
|
static |
162{
163 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
165}
◆ EaseOutBounce()
| float UEasingBPLib::EaseOutBounce |
( |
const float | Value | ) |
|
|
static |
214{
215 float X = FMath::Clamp(Value, 0.0f, 1.0f);
224 } {
227 }
228}
const float N1
Definition EasingBPLib.cpp:13
const float D1
Definition EasingBPLib.cpp:14
◆ EaseOutCirc()
| float UEasingBPLib::EaseOutCirc |
( |
const float | Value | ) |
|
|
static |
142{
143 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
144 return FMath::Sqrt(1.0f - FMath::Pow(
X - 1.0f, 2.0f));
145}
◆ EaseOutCubic()
| float UEasingBPLib::EaseOutCubic |
( |
const float | Value | ) |
|
|
static |
60{
61 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
62 return 1 - FMath::Pow(1.0f -
X, 3.0f);
63}
◆ EaseOutElastic()
| float UEasingBPLib::EaseOutElastic |
( |
const float | Value | ) |
|
|
static |
186{
187 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
189 ? 0.0f
191 ? 1.0f
192 : FMath::Pow(2.0f, -10.0f *
X) * FMath::Sin((
X * 10.0f - 0.75f) *
EasingValues::C4) + 1.0f;
193}
◆ EaseOutExpo()
| float UEasingBPLib::EaseOutExpo |
( |
const float | Value | ) |
|
|
static |
116{
117 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
119 ? 1.0f
120 : 1.0f - FMath::Pow(2.0f, -10.0f *
X);
121}
◆ EaseOutQuad()
| float UEasingBPLib::EaseOutQuad |
( |
const float | Value | ) |
|
|
static |
42{
43 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
44 return 1.0f - (1.0f -
X) * (1.0f -
X);
45}
◆ EaseOutQuart()
| float UEasingBPLib::EaseOutQuart |
( |
const float | Value | ) |
|
|
static |
78{
79 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
80 return 1 - FMath::Pow(1.0f -
X, 4.0f);
81}
◆ EaseOutQuint()
| float UEasingBPLib::EaseOutQuint |
( |
const float | Value | ) |
|
|
static |
96{
97 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
98 return 1.0f - FMath::Pow(1.0f -
X, 5.0f);
99}
◆ EaseOutSine()
| float UEasingBPLib::EaseOutSine |
( |
const float | Value | ) |
|
|
static |
Easing function that implements the "ease out" sine curve.
- Parameters
-
| Value | : A value between 0.0 and 1.0 representing the normalized progress of the animation. |
- Returns
- The eased value based on the sine curve.
24{
25 const float X = FMath::Clamp(Value, 0.0f, 1.0f);
26 return FMath::Sin((
X * PI) / 2.0f);
27}
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/BaseHelpers/Source/BaseHelpers/Public/BPLib/EasingBPLib.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/BaseHelpers/Source/BaseHelpers/Private/BPLib/EasingBPLib.cpp