svenstaro/bvh

Expose ray.inv_direction

nonl4331 opened this issue · 3 comments

ray.inv_direction is often used for intersection calculations after a bvh has trimmed the number of primitives to check. By exposing inv_direction it allows users to reuse the cached inv_direction within Ray for other purposes.

Seems fine. Happy for a PR!

It seems it's already public! It's just the git is ahead of version 0.7.2 on crates.io.

Closing issue.