Home
last modified time | relevance | path

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

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_steps_interpolator.cpp68 auto currentStep = static_cast<int32_t>(fraction * steps_); in InterpolateImpl() local
70 currentStep++; in InterpolateImpl()
74 return static_cast<float>(currentStep); in InterpolateImpl()
77 currentStep = std::min(currentStep, steps_); in InterpolateImpl()
78 return static_cast<float>(currentStep) / steps_; in InterpolateImpl()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dcurve.h215 auto currentStep = static_cast<int32_t>(time * steps_); in MoveInternal() local
216 if (position_ == StepsCurvePosition::START && currentStep < steps_) { in MoveInternal()
217 currentStep++; in MoveInternal()
219 return static_cast<float>(currentStep) / steps_; in MoveInternal()