eqemu-server/zone/oriented_bounding_box.h
Alex King ac5922bb32
[Cleanup] Use default ctor/dtor in oriented_bounding_box.h (#3307)
# Notes
- Use default ctor/dtor instead of empty ones.
2023-04-29 19:51:21 -05:00

24 lines
541 B
C++

#ifndef EQEMU_ORIENTED_BOUNDNG_BOX_H
#define EQEMU_ORIENTED_BOUNDNG_BOX_H
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
class OrientedBoundingBox
{
public:
OrientedBoundingBox() = default;
OrientedBoundingBox(const glm::vec3 &pos, const glm::vec3 &rot, const glm::vec3 &scale, const glm::vec3 &extents);
~OrientedBoundingBox() = default;
bool ContainsPoint(const glm::vec3 &p) const;
private:
float min_x, max_x;
float min_y, max_y;
float min_z, max_z;
glm::mat4 transformation;
glm::mat4 inverted_transformation;
};
#endif