TwiddleLab / Math / Vectors and Matrices
Arrows That Move Things
What you will learn
- A vector is a move: how far across and how far up.
- We write it with two components, like (3, 2). Minus means left or down.
- The same arrow works from any start: a vector is a shift, not a place.
How the lesson goes
In a game, this critter moves 3 right and 2 up every frame.
Where is it after one frame? Tap that spot.
A move only needs two numbers: how far across and how far up. Here 3 and 2.
Feed the critter. Drag the arrow head onto each berry.
Watch the card: it writes your arrow as two numbers.
Three critters, one arrow. Send them all home.
Drag the solid arrow head. Every critter copies the same move.
That arrow is called a vector.
A vector is a move: an arrow from its tail to its head.
Its components say how far across and how far up: (3, 2). Minus means left or down.
The same arrow can start anywhere. A vector is a shift, not a place.
Design your critter's hop.
It has to jump over the river. Pick x and y with the chips.
Only the up part decides if it clears the river, so any vector with y at least 3 works.
Game: courier. Deliver four orders.
Each order is a vector. Drag the arrow to match it, then Send. Fewest misses wins.
A vector is a move. Your hop works from anywhere.
Drop critters all over the map. They all use your hop.
Next lesson: How Long Is an Arrow? · Part of the course: Vectors and Matrices
Lessons are interactive and need JavaScript. Turn it on to play them.