Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dfriction_motion.cpp40 initVelocity_ = std::abs(initVelocity); in Reset()
46 if (NearZero(initVelocity_)) { in Reset()
51 finalTime_ = UNIT_CONVERT * std::log(velocityThreshold_ / initVelocity_) / friction_; in Reset()
74 … return initPosition_ + signum_ * (initVelocity_ / friction_) * std::expm1(friction_ * offsetTime); in GetPosition()
84 return signum_ * initVelocity_ * std::exp(friction_ * offsetTime); in GetVelocity()
111 if (NearZero(initVelocity_)) { in GetTimeByPosition()
125 time = std::log(position * friction_ / initVelocity_ + 1.0) / friction_; in GetTimeByPosition()
H A Dfriction_motion.h54 double initVelocity_ { 0.0 };
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable.cpp515 initVelocity_ = correctVelocity; in StartScrollAnimation()
547 frictionVelocity_ = initVelocity_; in StartScrollAnimation()
558 finalPosition_, initVelocity_, nodeId_, nodeTag_.c_str()); in StartScrollAnimation()
560 …option, finalPosition_, initVelocity_, [weak = AceType::WeakClaim(this), id = Container::CurrentId… in StartScrollAnimation()
684 initVelocity_ = velocity; in FixScrollMotion()
685 finalPosition_ = mainPosition + initVelocity_ / (friction * -FRICTION_SCALE); in FixScrollMotion()
H A Dscrollable.h580 float initVelocity_ = 0.0f; variable