#include "ui/events/gestures/fling_curve.h"
#include <algorithm>
#include <cmath>
#include "base/check_op.h"
namespace {
const float kDefaultAlpha = …;
const float kDefaultBeta = …;
const float kDefaultGamma = …;
inline double GetPositionAtTime(double t) { … }
inline double GetVelocityAtTime(double t) { … }
inline double GetTimeAtVelocity(double v) { … }
}
namespace ui {
FlingCurve::FlingCurve(const gfx::Vector2dF& velocity,
base::TimeTicks start_timestamp)
: … { … }
FlingCurve::~FlingCurve() { … }
bool FlingCurve::ComputeScrollOffset(base::TimeTicks time,
gfx::Vector2dF* offset,
gfx::Vector2dF* velocity) { … }
bool FlingCurve::ComputeScrollDeltaAtTime(base::TimeTicks current,
gfx::Vector2dF* delta) { … }
}