Moved AxisAlignedBox to mathematic module

Former-commit-id: 2cb5b151941a431b5c12457f0decf7b39195052d
This commit is contained in:
Lynix
2013-02-19 12:32:11 +01:00
parent d56900fe01
commit add363a290
21 changed files with 762 additions and 399 deletions

View File

@@ -39,7 +39,7 @@ bool NzStaticMesh::Create(NzVertexBuffer* vertexBuffer)
void NzStaticMesh::Destroy()
{
m_aabb.SetNull();
m_aabb.MakeNull();
if (m_indexBuffer)
{
@@ -79,7 +79,7 @@ bool NzStaticMesh::GenerateAABB()
return true;
}
const NzAxisAlignedBox& NzStaticMesh::GetAABB() const
const NzAxisAlignedBoxf& NzStaticMesh::GetAABB() const
{
return m_aabb;
}
@@ -114,7 +114,7 @@ bool NzStaticMesh::IsValid() const
return m_vertexBuffer != nullptr;
}
void NzStaticMesh::SetAABB(const NzAxisAlignedBox& aabb)
void NzStaticMesh::SetAABB(const NzAxisAlignedBoxf& aabb)
{
m_aabb = aabb;
}