e68ef4021f5ff755f0069c34ed6cbd8e8f7fca6c
3 Box::Box() : m_min(Infinity
, Infinity
, Infinity
),
4 m_max(-Infinity
, -Infinity
, -Infinity
)
8 Box::Box(Vec3f min
, Vec3f max
) : m_min(min
), m_max(max
)
16 Box::Box(const Box
& b
)
23 Box::operator=(const Box
& b
)
36 Box::Extend(const Vec3f
& a
)
38 // for all three coordinates, move m_max or m_min to the point
39 for(size_t i
= 0; i
< 3; i
++) {
42 } else if(a
[i
] < m_min
[i
]) {
44 } // else: do nothing, coordinate is inside the box
49 Box::Extend(const Box
& box
)
54 Box::Overlaps(const Box
& b
) const
60 Box::Clip(const Ray
& ray
, float& tnear
, float& tfar
) const
This page took 0.041024 seconds and 3 git commands to generate.