Home
last modified time | relevance | path

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

/lvgl-latest/src/libs/thorvg/
DtvgLottieExpressions.cpp768 auto prv = (*static_cast<LottiePoint*>(exp->property))(pframe); in _velocityAtTime() local
770 return _velocity(prv.x, cur.x, prv.y, cur.y, elapsed); in _velocityAtTime()
773 auto prv = (*static_cast<LottiePosition*>(exp->property))(pframe); in _velocityAtTime() local
775 return _velocity(prv.x, cur.x, prv.y, cur.y, elapsed); in _velocityAtTime()
778 auto prv = (*static_cast<LottieFloat*>(exp->property))(pframe); in _velocityAtTime() local
780 auto velocity = (cur - prv) / elapsed; in _velocityAtTime()
799 Point cur, prv; in _speedAtTime() local
804 prv = (*static_cast<LottiePoint*>(exp->property))(pframe); in _speedAtTime()
809 prv = (*static_cast<LottiePosition*>(exp->property))(pframe); in _speedAtTime()
819 auto speed = sqrtf(pow(cur.x - prv.x, 2) + pow(cur.y - prv.y, 2)) / elapsed; in _speedAtTime()