7963: Ray respects 2nd and 3rd quad angles

fixes #7963