Length of an arc between two angles: Difference between revisions
Content added Content deleted
(Created page with "'''Task''' Calculate the length of the arc (green) between two angles; https://imgur.com/a/aYgDLxr It is important in video game programming implement a method that takes...") |
No edit summary |
||
Line 2: | Line 2: | ||
Calculate the length of the arc (green) between two angles; |
Calculate the length of the arc (green) between two angles; |
||
https://imgur.com/a/aYgDLxr |
https://imgur.com/a/aYgDLxr |
Revision as of 04:52, 15 March 2020
Task
Calculate the length of the arc (green) between two angles;
It is important in video game programming
implement a method that takes parameters like:
- xpos of the circle
- ypos of the circle
- radius
- ang1
- ang2
return green arc_lenght
example method:
arc_lenght (xpos, ypos, radius, ang1, ang2) { return arc_lenght; }