ScratchData LogoScratchData
Back to 3046875's profile

Finding angles of any polygon! (fixed clip bug)

303046875•Created December 10, 2023
Finding angles of any polygon! (fixed clip bug)
0
0
1 views
View on Scratch

Instructions

Hello everyone! Today, I am back with an interesting project, which uses trigonometry to find all the interior angles of any polygon! FEATURED!! Thank you so much Scratch Team! Comment your codes and get a chance to get it mentioned in the description! Please don't advertise or send links here... 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). ˚.⋆➤ Then, one by one, the three altitudes of the triangles are found. The measures of the hypotenuse and base are calculated. (using Pythagoras theorem) From this, the cosine of the angle is calculated by dividing the base by the hypotenuse (welcome back, horrors of class 9) Thanks to our trusty 'acos' operator one scratch, the angle's measure can be found from it! This is done for all the triangles and the measures are stored in a list! ˚.⋆➤ Lastly, a special pattern is executed, and the computer adds the list items to form the measures of the interior angles of the polygon! Note ˚.⋆➤ The angles are not 100% accurate as the project uses scratch's sprite sensing technology to measure a certain distance... but, it tells us more-or-less the correct measure! LOAD CODES: Here are some codes made by me and some of you! Comment your code down and it may be added here! ˚.⋆➤ Star: 10_150_-2_132_32_54_114_52_48_4_86_-75_-3_-31_-83_-72_-53_0_-113_52_-35_53 ˚.⋆➤ When the polygon is sus: 25_0_-4_104_29_103_57_91_68_69_20_70_2_55_1_22_19_5_66_5_68_69_66_5_64_-120_11_-120_14_-66_-2_-64_-2_-119_-48_-116_-50_-58_-68_-57_-79_-43_-79_15_-70_25_-50_28_-50_68_-29_95 ˚.⋆➤ Clover: 30_64.5_-1_52_17_87_30_98_55_101_90_80_98_51_89_24_56_4_81_-12_95_-31_87_-50_75_-67_59_-75_36_-66_1_-29_7_-108_-15_-109_-8_-29_-33_-63_-70_-67_-92_-47_-91_-24_-73_-7_-37_7_-70_18_-102_41_-98_69_-67_97_-41_100_-18_89 ˚.⋆➤ Heart: 15_164.25_1_46_41_91_69_96_97_85_113_64_120_35_110_7_92_-22_4_-100_-82_-19_-107_14_-112_46_-99_77_-68_91_-41_91 NEWS/ NEW UPDATES: ˚.⋆➤ Shared on 4th November 2023 ˚.⋆➤ FEATURED on 7th December 2023!!!! Many new features added including Vertices count, colour changing, saving/loading the polygon, etc. ˚.⋆➤ Load code section added (8th December 2023) Music by BlobfishGlop Scratch on! #angles #maths #trigonometry #fun #finding #polygon #complex #program #angles #maths #trigonometry #fun #finding #polygon #complex #program #angles #maths #trigonometry #fun #finding #polygon #complex #program #vatsalnewar #vatsalnewar #load #save #make #patterns #trending #all #maths #geometry #algebra #trigonometry

Project Details

Project ID938029540
CreatedDecember 10, 2023
Last ModifiedDecember 11, 2023
SharedDecember 10, 2023
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root