Struct cgmath::Aabb3
[−]
[src]
pub struct Aabb3<S> { pub min: Point3<S>, pub max: Point3<S>, }
A three-dimensional AABB, aka a rectangular prism.
Fields
min | |
max |
Methods
impl<S: BaseNum> Aabb3<S>
fn new(p1: Point3<S>, p2: Point3<S>) -> Aabb3<S>
Construct a new axis-aligned bounding box from two points.
fn to_corners(&self) -> [Point3<S>; 8]
Compute corners.