Producing correct cartesian direction vectors