2 releases

Uses old Rust 2015

0.1.1 Oct 2, 2016
0.1.0 Sep 25, 2016

#4 in #physically

Download history 8/week @ 2024-07-01 53/week @ 2024-07-29

61 downloads per month

MIT/Apache

17KB
295 lines

BeeBox

This crate provides yet another axis-aligned bounding box (AABB). It is geared towards ray tracing and loosely based on the BBox class from Physically Based Rendering - From Theory To Implementation (second edition) by Matt Pharr and Greg Humphreys.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Yet another axis-aligned bounding box (AABB), biased towards ray tracing.

The design is loosely based on the BBox class from the second edition of Physically based rendering: From theory to implementation by Matt Pharr and Greg Humphreys. Consequently, it is geared to the demands of ray tracing and similar applications, and comes with otherwise rarely-used operations such as surface area calculations and ray-AABB intersection calculations.

It is also focused entirely on 32-bit floats. A 64-bit variant may be added in later versions if needed.

Dependencies

~1.5MB
~23K SLoC