Home
last modified time | relevance | path

Searched refs:SECONDS_PER_NANO (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/libs/input/
DVelocityTracker.cpp1128 static constexpr float SECONDS_PER_NANO = 1E-9; in calculateImpulseVelocity() local
1141 return (x[1] - x[0]) / (SECONDS_PER_NANO * (t[1] - t[0])); in calculateImpulseVelocity()
1151 float vcurr = (x[i] - x[i-1]) / (SECONDS_PER_NANO * (t[i] - t[i-1])); // v[i] in calculateImpulseVelocity()