Coding · Grade 9
Coordinates, Vectors and Transformations
Using a fictional boating game, learners convert between world coordinates and screen pixels, move objects with vector addition, scaling, length and normalization, transform shapes by translation, scaling and rotation about a pivot, and apply vectors to gameplay: range checks with squared distances, aiming and fixing the diagonal-speed bug.
- 4 lessons
- About 95 minutes
- Check what you learned: 8 questions
- Ways to answer: choose an answer, trace code, plot points, type a number and true or false
What learners will discover
- Use world and screen coordinates, including converting with a camera, a zoom and a flipped y axis.
- Add, subtract, scale and normalize vectors, and compute their length, to move objects.
- Apply translations, scaling and rotations, including rotation about a pivot, and explain why order matters.
- Use vectors for gameplay: range checks, aiming and constant-speed movement in any direction.
Lessons
-
Coordinates on screen and in the world 5 steps2 practiceabout 20 min
-
Vectors for movement 5 steps3 practiceabout 24 min
-
Transformations 5 steps3 practiceabout 22 min
-
Vectors in gameplay 5 steps3 practiceabout 20 min
-
Check what you learned 8 questions at the end
Keep exploring
More 9th grade coding
- 9th Grade Coding Worksheets10 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read