Azaurr

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: 作业六,dirIsNeg是干什么的? #5276 Score: 0
    Azaurr
    Participant

    似乎可以不使用disIsNeg进行判断。我的做法是用t1表示光线到AABB上xMax、yMax、zMax这三个面的时间,t2表示到xMin、yMin、zMin这三个面的时间。然后分别计算光线在x、y、z三个方向进入和离开相应平面的时间tMin和tMax。最后得到进入和离开AABB的时间tEnter和tExit。

    • This reply was modified 4 years, 1 month ago by Azaurr.
    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)