1 #ifndef BLOBS_MATH_GEOMETRY_HPP_
2 #define BLOBS_MATH_GEOMETRY_HPP_
17 void Adjust() noexcept {
18 if (max.x < min.x) std::swap(max.x, min.x);
19 if (max.y < min.y) std::swap(max.y, min.y);
20 if (max.z < min.z) std::swap(max.z, min.z);
23 glm::dvec3 Center() const noexcept {
24 return min + (max - min) * 0.5;
29 /// matrices must not scale
32 const glm::dmat4 &a_m,
34 const glm::dmat4 &b_m,
36 double &depth) noexcept;