Example 3 Find the direction cosines of the line passing through the two points (– 2