2 releases

Uses old Rust 2015

0.1.1 Oct 2, 2016
0.1.0 Sep 25, 2016

#4 in #physically

Download history 5/week @ 2024-02-16 4/week @ 2024-02-23 42/week @ 2024-03-29 12/week @ 2024-04-05

54 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
~22K SLoC