b1951e422d53d6cb055c9a11ebbc754b59ab883e
3 Box::Box() : m_min(-Infinity
), m_max(Infinity
)
11 Box::Box(const Box
& b
)
18 Box::operator=(const Box
& b
)
31 Box::Extend(const Vec3f
& a
)
33 // for all three coordinates, move m_max or m_min to the point
34 for(size_t i
= 0; i
< 3; i
++) {
37 } else if(a
[i
] < m_min
[i
]) {
39 } // else: do nothing, coordinate is inside the box
44 Box::Extend(const Box
& box
)
49 Box::Overlaps(const Box
& b
) const
55 Box::Clip(const Ray
& ray
, float& tnear
, float& tfar
) const
This page took 0.048617 seconds and 3 git commands to generate.