Skip to content

Commit 07fab0c

Browse files
committed
Add another reference for slab test
1 parent 27d246a commit 07fab0c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/aabb.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ impl AABB {
3737
}
3838

3939
/// 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
40+
/// 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/
4143
pub fn hit(&self, ray: &Ray, _position_min: f32, _position_max: f32) -> bool {
4244
let t0 = (self.minimum - ray.origin) * ray.inverse_direction;
4345
let t1 = (self.maximum - ray.origin) * ray.inverse_direction;

0 commit comments

Comments
 (0)