[][src]Function pbrt::core::geometry::bnd2_union_pnt2

pub fn bnd2_union_pnt2<T>(b: &Bounds2<T>, p: &Point2<T>) -> Bounds2<T> where
    T: Float

Given a bounding box and a point, the bnd2_union_pnt2() function returns a new bounding box that encompasses that point as well as the original box.