Javascript-an algorithm for calculating the rotation degree of each frame

Source: Internet
Author: User
{Code...} shows an algorithm for calculating the rotation degree of each frame of the turntable in the big turntable. (Mathematics is replaced by a PE instructor)
Var a = 0.01; var totalDeg = 360; var steps = []; function countSteps () {var t = Math. sqrt (2 * totalDeg/a); var v = a * t; for (var I = 0; I <t; I ++) {steps. push (2 * v * I-a * I)/2)} steps. push (totalDeg )}

An algorithm used to calculate the rotation degree of each frame of the turntable seen on the big turntable. (Mathematics is replaced by a PE instructor)

Reply content:
Var a = 0.01; var totalDeg = 360; var steps = []; function countSteps () {var t = Math. sqrt (2 * totalDeg/a); var v = a * t; for (var I = 0; I <t; I ++) {steps. push (2 * v * I-a * I)/2)} steps. push (totalDeg )}

An algorithm used to calculate the rotation degree of each frame of the turntable seen on the big turntable. (Mathematics is replaced by a PE instructor)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.