Dear CS10-Gitlab-users, on Thursday, Feb 3 there will be maintenance. That will lead to a downtime of the CS10-Gitlab-service including Subversion and Mattermost chat from 09:30. This might take the whole day since we don't know how long it is going to take. We are sorry for the inconvenience! Best regards, CS10-Admin-Team

Commit 7c3a61a8 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

fixed warning to please msvc

parent 1656f508
......@@ -98,14 +98,14 @@ int main( int argc, char ** argv )
// be used to for instance rotate the box around the global y-axis.
BoxID box = createBox( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), Vec3(2.5,2.5,2.5) );
if (box != NULL)
box->rotate( 0.0, math::PI/3.0, 0.0 );
box->rotate( 0.0, real_c(math::PI/3.0), 0.0 );
//! [Create a Box]
//! [Create a Capsule]
// Create a capsule and rotate it after successfull creation.
CapsuleID capsule = createCapsule( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), real_t(1), real_t(1) );
if (capsule != NULL)
capsule->rotate( 0.0, math::PI/3.0, 0.0 );
capsule->rotate( 0.0, real_c(math::PI/3.0), 0.0 );
//! [Create a Capsule]
//! [Create a Plane]
......@@ -118,7 +118,7 @@ int main( int argc, char ** argv )
// Create a sphere and rotate it after successfull creation.
SphereID sphere = createSphere( *globalBodyStorage, forest->getBlockStorage(), storageID, 1, Vec3(2,3,4), real_t(1) );
if (sphere != NULL)
sphere->rotate( 0.0, math::PI/3.0, 0.0 );
sphere->rotate( 0.0, real_c(math::PI/3.0), 0.0 );
//! [Create a Sphere]
//! [Create a Union]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment