mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Refactoring
This commit is contained in:
parent
8e43e26415
commit
ca50ed466a
2 changed files with 2 additions and 2 deletions
|
|
@ -370,7 +370,7 @@ inline bool isInRange(double value, double from, double to) {
|
|||
return from < value && value < to;
|
||||
}
|
||||
|
||||
double cubicBezierInterpolate(double value, Vector2D const &P0, Vector2D const &P1, Vector2D const &P2, Vector2D const &P3);
|
||||
float cubicBezierInterpolate(float value, Vector2D const &P0, Vector2D const &P1, Vector2D const &P2, Vector2D const &P3);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ static double SolveCubic(double a, double b, double c, double d) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
double cubicBezierInterpolate(double value, Vector2D const &P0, Vector2D const &P1, Vector2D const &P2, Vector2D const &P3) {
|
||||
float cubicBezierInterpolate(float value, Vector2D const &P0, Vector2D const &P1, Vector2D const &P2, Vector2D const &P3) {
|
||||
double t = 0.0;
|
||||
if (value == P0.x) {
|
||||
// Handle corner cases explicitly to prevent rounding errors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue