Pasaeta de linters

This commit is contained in:
2025-08-06 13:05:04 +02:00
parent 8ed2dbcd4f
commit 1224af2a9b
40 changed files with 623 additions and 592 deletions

View File

@@ -42,7 +42,6 @@ auto getCollisionPoint(const Circle &a, const Circle &b) -> SDL_FPoint {
return contact;
}
// Detector de colisiones entre dos circulos
auto checkCollision(const Circle &a, const Circle &b) -> bool {
// Calcula el radio total al cuadrado
@@ -264,24 +263,24 @@ auto easeOutElastic(double time) -> double {
// Ease Out Expo - Muy suave al final (más dramático)
auto easeOutExpo(double time) -> double {
return time == 1.0f ? 1.0f : 1.0f - pow(2.0f, -10.0f * time);
return time == 1.0F ? 1.0F : 1.0F - pow(2.0F, -10.0F * time);
}
// Ease In Expo - Arranque muy gradual
auto easeInExpo(double time) -> double {
return time == 0.0f ? 0.0f : pow(2.0f, 10.0f * (time - 1.0f));
return time == 0.0F ? 0.0F : pow(2.0F, 10.0F * (time - 1.0F));
}
// Ease Out Back - Con un pequeño "rebote"
auto easeOutBack(double time) -> double {
const double C1 = 1.70158f;
const double C3 = C1 + 1.0f;
return 1.0f + C3 * pow(time - 1.0f, 3.0f) + C1 * pow(time - 1.0f, 2.0f);
const double C1 = 1.70158F;
const double C3 = C1 + 1.0F;
return 1.0F + C3 * pow(time - 1.0F, 3.0F) + C1 * pow(time - 1.0F, 2.0F);
}
// Ease Out Cubic - Desaceleración suave al final
auto easeOutCubic(double time) -> double {
return 1.0f - pow(1.0f - time, 3.0f);
return 1.0F - pow(1.0F - time, 3.0F);
}
// Ease In Cubic - Aceleración gradual
@@ -391,7 +390,6 @@ auto truncateWithEllipsis(const std::string &input, size_t length) -> std::strin
return input;
}
if (length <= 3) {
// Not enough space for any content plus ellipsis
return std::string(length, '.');
}
return input.substr(0, length) + "...";