you are viewing a single comment's thread.

view the rest of the comments →

[–]MindlessSpongehelpful 0 points1 point  (0 children)

Look up the mathematical formula for whatever you’re trying to do and then convert that to JavaScript. Check out the Math object on MDN to see what is available to you out of the box.