2 releases
Uses old Rust 2015
0.1.1 | Oct 2, 2016 |
---|---|
0.1.0 | Sep 25, 2016 |
#4 in #physically
61 downloads per month
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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