Hello everyone! Today, I am back with an interesting project, which uses trigonometry to find all the interior angles of any polygon! HOW DOES IT WORK? Firstly, the computer divides the given polygon into many triangles (n-2 to be exact, where n is the number of vertices). Secondly, one by one, the three altitudes of the triangles are found. The measures of the hypotenuse and base are calculated. From this, the cosine of the angle is calculated (welcome back, horrors of class 9) Thanks to our trusty 'acos' operator one scratch, the angle's measure can be found from it! Lastly, a special pattern is executed and all the interior angles of all the triangles are converted and added to form the interior angles! Note---> The angles are not 100% accurate as the project uses scratch's sprite sensing technology to measure a certain distance... Music by BlobfishGlop Scratch on!
Thanks for this most viewed game of mine You could use this to help in math class