pub fn bnd3_union_pnt3f(b: &Bounds3f, p: &Point3f) -> Bounds3f {
    let p_min: Point3f = Point3f {
        x: b.p_min.x.min(p.x),
        y: b.p_min.y.min(p.y),
        z: b.p_min.z.min(p.z),
    };
    let p_max: Point3f = Point3f {
        x: b.p_max.x.max(p.x),
        y: b.p_max.y.max(p.y),
        z: b.p_max.z.max(p.z),
    };
    Bounds3f { p_min, p_max }
}
/// Given a bounding box and a point, the **bnd3_union_pnt3()**
/// function returns a new bounding box that encompasses that point as
/// well as the original box.
Given a bounding box and a point, the **bnd3_union_pnt3()
function returns a new bounding box that encompasses that point as
well as the original box.
Given a bounding box and a point the ** bnd3_union_pnt3 () function returns a new bounding box that encompasses that point as well as the original box .
pub fn bnd3_union_pnt3f(b: &Bounds3f, p: &Point3f) -> Bounds3f {
    let p_min: Point3f = Point3f {
        x: b.p_min.x.min(p.x),
        y: b.p_min.y.min(p.y),
        z: b.p_min.z.min(p.z),
    };
    let p_max: Point3f = Point3f {
        x: b.p_max.x.max(p.x),
        y: b.p_max.y.max(p.y),
        z: b.p_max.z.max(p.z),
    };
    Bounds3f { p_min, p_max }
}
pub fn bnd3_union_pnt3f ( b : & Bounds3f , p : & Point3f ) -> Bounds3f { let p_min : Point3f = Point3f { x : b . p_min . x . min ( p . x ) , y : b . p_min . y . min ( p . y ) , z : b . p_min . z . min ( p . z ) , } ; let p_max : Point3f = Point3f { x : b . p_max . x . max ( p . x ) , y : b . p_max . y . max ( p . y ) , z : b . p_max . z . max ( p . z ) , } ; Bounds3f { p_min , p_max } }
Given a bounding box and a point, the **bnd3_union_pnt3()
function returns a new bounding box that encompasses that point as
well as the original box.
Given a bounding box and a point the ** bnd3_union_pnt3 () function returns a new bounding box that encompasses that point as well as the original box .
b
&Bounds3f
p
&Point3f