Made use of constexpr keyword

Former-commit-id: 79bc50ffaa21947dacd18578a34f6be65285821b
This commit is contained in:
Lynix
2014-04-02 01:02:47 +02:00
parent 485b35684d
commit 7196d8399f
3 changed files with 12 additions and 7 deletions

View File

@@ -783,7 +783,7 @@ void NzGenerateBox(const NzVector3f& lengths, const NzVector3ui& subdivision, co
void NzGenerateCone(float length, float radius, unsigned int subdivision, const NzMatrix4f& matrix, const NzRectf& textureCoords, NzMeshVertex* vertices, NzIndexIterator indices, NzBoxf* aabb, unsigned int indexOffset)
{
const float round = 2.f*static_cast<float>(M_PI);
constexpr float round = 2.f*static_cast<float>(M_PI);
float delta = round/subdivision;
vertices->position = matrix.GetTranslation(); // matrix.Transform(NzVector3f(0.f));