Speed and Velocity
Any time an object is moving, it has some speed. Speed measures how fast an object is moving. If an object has speed, it also has a velocity, which is simply the vector version of speed. You might want to flip back to Chapter 4, “Vector Operations,” for a quick refresher on the difference between a vector and a scalar quantity. Velocity is speed with a direction. In one dimension, the direction is given by positive or negative. (Chapter 10, “Motion in Two and Three Dimensions,” address how to deal with direction in 2D and 3D.) For now, just consider the motion of an object along a straight line, where positive velocity is forward and negative velocity is backward.
NOTE
The terms “speed” and “velocity” may be used interchangeably ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access