Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用缓动方程模拟一个物体的椭球运动,更具体地说像一个陀螺,但我无法得到一个缓动方程来帮助我做到这一点,有人知道吗?
我正在使用 html/js,但无论是另一种语言,还是可以在这里制作一个,我会继续寻找一种方法,同时我会等待你的答案。
椭圆由以下等式参数化:
var x = Math.cos(t) * smja; var y = Math.sin(t) * smna;
其中smja和smna分别是半长轴和半短轴。在 0 和 2π 之间运行 t 和 (x, y) 将描述一个椭圆。
smja
smna