Nameless Engine
Loading...
Searching...
No Matches
AABB.h
1#pragma once
2
3// Standard.
4#include <vector>
5
6// Custom.
7#include "math/GLMath.hpp"
8#include "misc/shapes/Plane.h"
9
10namespace ne {
11 struct MeshVertex;
12
14 struct AABB {
22 static AABB createFromVertices(std::vector<MeshVertex>* pVertices);
23
31 bool isBehindPlane(const Plane& plane) const;
32
34 glm::vec3 center = glm::vec3(0.0F, 0.0F, 0.0F);
35
37 glm::vec3 extents = glm::vec3(0.0F, 0.0F, 0.0F);
38 };
39}
Definition: AABB.h:14
glm::vec3 center
Definition: AABB.h:34
glm::vec3 extents
Definition: AABB.h:37
bool isBehindPlane(const Plane &plane) const
Definition: AABB.cpp:48
static AABB createFromVertices(std::vector< MeshVertex > *pVertices)
Definition: AABB.cpp:14
Definition: Plane.h:8