Beginner course · learn by doing
You do not need to memorize the formulas first. Move the arrows, use the sliders, and watch what changes. Then read the short explanation underneath.
1. Move itDrag an orange point.
2. Tune itUse the sliders for small, precise changes.
3. Observe itWatch the black result and the numbers.
A vector is an arrow that stores two things: direction and amount.
A single vector
Try it: drag the orange point, or move the x and y sliders below. Watch how the arrow changes direction and length.
Manual controls
The interactive could not load. Check your connection and reload.
The number x tells you how far to move sideways. The number y tells you how far to move up or down. Together they define the arrow.
A vector is useful whenever something has both a size and a direction: velocity, force, wind, a direction to a target, and more.
Try: set x to 0. What direction can the vector point now?
Addition combines two effects that happen at the same time.
Drone + wind
Try it: drag either colored endpoint, or move the sliders below. Watch the black arrow show the combined motion.
Manual controls
The interactive could not load. Check your connection and reload.
The drone moves, and the wind pushes it at the same time. The black arrow is where those two motions lead together.
Add x to x, and y to y:
Try: make the wind point almost opposite the drone. Notice how the black arrow gets shorter.
Subtraction tells you how one motion looks relative to another.
Two cars on the same road
Try it: change either car's speed. Watch the black arrow show how Car A moves from Car B's point of view.
Manual controls
The interactive could not load. Check your connection and reload.
If both cars move at the same speed in the same direction, neither car pulls away from the other. Their relative velocity is zero.
Try: give both cars exactly 90 km/h. Then increase only Car B.
A scalar is just a normal number. Multiplying a vector by it changes the vector's size.
Change the throttle
Try it: drag the base vector or tune it with the sliders, then change k. Watch the black result stretch, shrink, or flip.
Manual controls
The interactive could not load. Check your connection and reload.
Try: set k to -1.
Magnitude means the length of a vector.
How fast is the boat?
Try it: drag the orange point, or use the x and y sliders. Watch the black arrow's length change.
Manual controls
The interactive could not load. Check your connection and reload.
The x and y parts make a right triangle. The vector is the diagonal, so we use the Pythagorean theorem.
Try: set x = 3 and y = 4. The length should become 5.
Normalization keeps the direction but changes the vector's length to exactly 1.
Direction only
Try it: move the orange target, or use the x and y sliders. The black arrow keeps the same direction but always has length 1.
Manual controls
The interactive could not load. Check your connection and reload.
Sometimes you only want a direction, not a distance. Dividing by the vector's own length makes its new length equal to 1.
Try: move the target far away, then very close. The black direction arrow stays the same length.
The dot product tells you whether two vectors point mostly together, sideways, or opposite.
Are we moving toward the target?
Try it: drag either colored endpoint, or tune both vectors with the sliders. Watch the sign of the dot product.
Manual controls
The interactive could not load. Check your connection and reload.
Try: make the two vectors perpendicular and aim for a dot product near 0.
The angle tells you how much one direction must turn to face another.
Turn toward the dock
Try it: drag the dock, or move its x and y sliders. Watch the turn angle change with it.
Manual controls
The interactive could not load. Check your connection and reload.
0° means the directions match. 90° means sideways. 180° means exactly opposite.
Try: place the dock directly behind the boat and look for an angle near 180°.
Projection asks: “How much of this vector acts in that direction?”
Gravity along a hill
Try it: change the hill angle with the slider or type a value. Watch the orange part of gravity grow along the road.
Manual control
The interactive could not load. Check your connection and reload.
Gravity points straight down, but only part of it pulls along the hill. That part is the projection.
Try: set the hill to 0°. The force along the hill should become 0.
A drone is trying to reach a package while wind pushes it off course.
Course correction
Your goal: drag the drone or wind vectors, or tune them with the sliders below. Make the black ground-velocity arrow point as closely as possible toward the package.
Manual controls
The interactive could not load. Check your connection and reload.
First, the wind and drone velocities add. Then we compare the result with the direction to the package.
If the alignment is close to 1 and the direction error is close to 0°, you are aimed at the package.