test ray::test::furthest_aabb_hits_vertical FAILS

Test ray::test::furthest_aabb_hits_vertical fails. This test checks the functionality of intersect segment with a perfectly vertical ray. This bug is a combination of gradient being calculated in terms of dy/dx which is asymptotic at vertical rays, and the distance calculation being performed on the x axis which can only return 0 when dx is 0.

Files Effected:

  • ray.rs

Tests:

  • ray::test::furthest_aabb_hits_vertical
Edited by SEGFAULT