diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-11-27 14:29:52 -0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-17 15:03:03 +1000 |
commit | 0a5a0d7c242add4d79721c1b90073b603a475534 (patch) | |
tree | 9f8b92ba62f76efbb480970a71ec099dd6e1f0c3 /mi | |
parent | 6401317bdcf58b2717214ac65c8f47b0c384a7db (diff) |
barriers: Replace complex intersection test with simpler math
Since barriers are axis-aligned, we can do the intersection test with
simple interpolation rather than line-segment intersection. This also
helps us out in the future when we want the barriers to extend to be
rays and lines rather than just segments.
Signed-off-by: Jasper St. Pierre <jstpierre@mecheye.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'mi')
0 files changed, 0 insertions, 0 deletions