--- a/src/point-to-point-layout/model/point-to-point-star.cc Fri Aug 31 12:24:28 2012 +0200
+++ b/src/point-to-point-layout/model/point-to-point-star.cc Sat Sep 01 20:57:21 2012 +0200
@@ -14,6 +14,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <cmath>
#include <iostream>
#include <sstream>
@@ -184,8 +185,8 @@
spokeLoc = CreateObject<ConstantPositionMobilityModel> ();
spokeNode->AggregateObject (spokeLoc);
}
- Vector spokeVec (hubVec.x + cos (theta*i) * spokeDist,
- hubVec.y + sin (theta*i) * spokeDist,
+ Vector spokeVec (hubVec.x + std::cos (theta*i) * spokeDist,
+ hubVec.y + std::sin (theta*i) * spokeDist,
0);
spokeLoc->SetPosition (spokeVec);
}