There are thousands of rays and triangles. We need to get all the intersection points. If we use ordinary two-level loops, we need O (mn) time complexity. Is there a way to reduce the time complexity of fronm O (mn) to O (m * logn) or O (logm * n)?
Regards,
source
share