Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
I created a program located at http://www.ptrone.com/
Where changing the value of z to
cos(point)*120+120
Creates a circle that is rotating in a circular motion.
Can anyone tell the formula to create a triangle that rotates in a circular motion?

What I have tried:

cos(), sin(), exp() ...
How do I use the formulas
Posted
Updated 6-May-16 21:21pm

1 solution

use Math object

refer:
JavaScript Math Reference[^]
JavaScript Math Functions[^]
JavaScript The Math Object[^]
Math Object (JavaScript)[^]

example:
JavaScript
var value = Math.cos(25);
alert (value);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900