Angles and Rotation
Nature of Code Lesson #3.1
Welcome to Chapter 3 of The Nature of Code: Oscillating Motion! I begin in this video by explaining angles, the different units of measurements for angles: degrees and radians, and how to rotate shapes in p5.js.
Topics
- 0:00 - Hello!
- 0:25 - Explain! Angles
- 1:32 - Explain! Units of measurement for an angle
- 2:02 - Explain! Radians
- 3:32 - Explain! Why is pi so important?
- 5:13 - Code! Rotate by 90 degrees
- 6:36 - Code! angleMode(DEGREES);
- 7:26 - Code! Let's use radians
- 8:56 - Explain! Rotation direction
- 10:32 - See you in the next video!
Community Contributions
- Fortune Wheel(s) by LemurDaniel (Source Code)
You can also add your own version! (See how)
Links discussed in this lesson
Videos discussed in this lesson
- Transformations (Translate, Rotate, Push/Pop) - Part 1 by The Coding Train