2D lines intersection

Started by
9 comments, last by yanuart 21 years, 11 months ago
Well, you have eight comparisons using the bouding box method. The conditional-AND (&&) can be changed to the bitwise-AND(&) (I think that gives you a millionth of a second or two). I can''t tell you how much faster it would be unless I were to profile it. Programmers are inherently lazy, so you will understand if I don''t profile

This topic is closed to new replies.

Advertisement