Home > Software engineering > The specified coordinates to the moving images, similar products into the effect of buying car?
The specified coordinates to the moving images, similar products into the effect of buying car?
Time:09-23
The specified coordinates to the moving images, similar products into the effect of buying car?
CodePudding user response:
This is a math problem, goods into buying a car, shopping cart and button, Assuming that coordinates (0, 0) button, shopping cart coordinates (c, d) both the path of the constitute a parabolic shape C, d for known number Countable equation y=ax ^ 2 + bx, through (0, 0), At the same time in order to satisfy the parabolic fall within (c, d), so the d=ac ^ 2 + BC B=(d - ac ^ 2)/c Get the equation y=ax ^ 2 + (d - ac ^ 2) x/c Need appeared in the process of flying parabola vertex animation, so the points need to be on the right side of the vertex b/2 c, so c> B/2 So the equation a need to meet a> D/c ^ 2-2