Fixed returning address to temporary in functions. AABB also constructible from glm::vec4s.

This commit is contained in:
William Moberg
2015-12-16 12:19:43 +01:00
parent 04a01104b5
commit 99b76d7ae1
5 changed files with 9 additions and 4 deletions
+4
View File
@@ -7,6 +7,10 @@ AABB::AABB(const glm::vec3& minPos, const glm::vec3& maxPos)
, m_HalfSize(0.5f * (maxPos - minPos))
{}
AABB::AABB(const glm::vec4& minPos, const glm::vec4& maxPos)
: AABB(glm::vec3(minPos), glm::vec3(maxPos))
{}
void AABB::CreateFromCenter(const glm::vec3& center, const glm::vec3& size)
{
m_Center = center;