Qualify calls to certain functions from the cmath library.
This commit is contained in:
@@ -15,8 +15,9 @@
|
||||
|
||||
#include "NewtonsRopeCradle.h"
|
||||
|
||||
#include <vector> // TODO: Should I use another data structure?
|
||||
#include <cmath>
|
||||
#include <iterator>
|
||||
#include <vector> // TODO: Should I use another data structure?
|
||||
|
||||
#include "btBulletDynamicsCommon.h"
|
||||
#include "LinearMath/btVector3.h"
|
||||
@@ -204,7 +205,7 @@ void NewtonsRopeCradleExample::initPhysics()
|
||||
btSphereShape* pendulumShape = new btSphereShape(gSphereRadius);
|
||||
m_collisionShapes.push_back(pendulumShape);
|
||||
|
||||
for (int i = 0; i < floor(gPendulaQty); i++)
|
||||
for (int i = 0; i < std::floor(gPendulaQty); i++)
|
||||
{
|
||||
// create pendulum
|
||||
createRopePendulum(pendulumShape, position, orientation, gInitialPendulumWidth,
|
||||
|
||||
Reference in New Issue
Block a user