added a unitize function (and divide) so that the magnitude of the direction of the Ray will be equal to 1.