Calculating dot and cross products with unit vector notation