clang-tidy readability-function-cognitive-complexity
clang-format
This commit is contained in:
@@ -235,7 +235,7 @@ auto easeInElastic(double time) -> double {
|
||||
if (time == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (time == 1) {
|
||||
return 1;
|
||||
}
|
||||
@@ -266,11 +266,11 @@ auto easeOutElastic(double time) -> double {
|
||||
if (time == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (time == 1) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
const double C4 = (2 * M_PI) / 3; // Constante para controlar la elasticidad
|
||||
return pow(2, -10 * time) * sin((time * 10 - 0.75) * C4) + 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user