added a new dot2 function that is the correct function to be used in the test for ray curve intersection
added a few more test cases to check correct ray curve intersection from other axes