which two measurements are needed to determine the speed of an object