We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27d246a commit 07fab0cCopy full SHA for 07fab0c
1 file changed
src/aabb.rs
@@ -37,7 +37,9 @@ impl AABB {
37
}
38
39
/// Perform an intersection test with an AABB
40
- /// Reference: https://medium.com/@bromanz/another-view-on-the-classic-ray-aabb-intersection-algorithm-for-bvh-traversal-41125138b525
+ /// References:
41
+ /// https://medium.com/@bromanz/another-view-on-the-classic-ray-aabb-intersection-algorithm-for-bvh-traversal-41125138b525
42
+ /// https://jcgt.org/published/0007/03/04/
43
pub fn hit(&self, ray: &Ray, _position_min: f32, _position_max: f32) -> bool {
44
let t0 = (self.minimum - ray.origin) * ray.inverse_direction;
45
let t1 = (self.maximum - ray.origin) * ray.inverse_direction;
0 commit comments