If you get 4 points...
For advanced projects, you can use trigonometric functions to perform calculations involving angles. Scratch supports functions for cosine, sine, and tangent, which are useful for more complex mathematical computations and animations. Here's an example of how to use these trigonometric functions:
when green flag clicked
set [angle v] to (45)
set [cosineValue v] to (cos (angle))
say (join [Cosine of ] (angle))
say (cosineValue) for (3) secs
set [sineValue v] to (sin (angle))
say (join [Sine of ] (angle))
say (sineValue) for (3) secs
set [tangentValue v] to (tan (angle))
say (join [Tangent of ] (angle))
say (tangentValue) for (3) secs
In this example, the program calculates the cosine, sine, and tangent of a given angle and displays the results. This demonstrates the use of trigonometric functions to perform advanced mathematical operations.