StelGeodesicGrid.cpp   StelGeodesicGrid.cpp 
skipping to change at line 39 skipping to change at line 39
Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, US A. Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, US A.
*/ */
#include "StelGeodesicGrid.hpp" #include "StelGeodesicGrid.hpp"
#include <QDebug> #include <QDebug>
#include <cmath> #include <cmath>
#include <cstdlib> #include <cstdlib>
static const float icosahedron_G = 0.5*(1.0+sqrt(5.0)); static const float icosahedron_G = 0.5*(1.0+std::sqrt(5.0));
static const float icosahedron_b = 1.0/sqrt(1.0+icosahedron_G*icosahedron_G static const float icosahedron_b = 1.0/std::sqrt(1.0+icosahedron_G*icosahed
); ron_G);
static const float icosahedron_a = icosahedron_b*icosahedron_G; static const float icosahedron_a = icosahedron_b*icosahedron_G;
static const Vec3f icosahedron_corners[12] = static const Vec3f icosahedron_corners[12] =
{ {
Vec3f( icosahedron_a, -icosahedron_b, 0.0), Vec3f( icosahedron_a, -icosahedron_b, 0.0),
Vec3f( icosahedron_a, icosahedron_b, 0.0), Vec3f( icosahedron_a, icosahedron_b, 0.0),
Vec3f(-icosahedron_a, icosahedron_b, 0.0), Vec3f(-icosahedron_a, icosahedron_b, 0.0),
Vec3f(-icosahedron_a, -icosahedron_b, 0.0), Vec3f(-icosahedron_a, -icosahedron_b, 0.0),
Vec3f( 0.0, icosahedron_a, -icosahedron_b), Vec3f( 0.0, icosahedron_a, -icosahedron_b),
Vec3f( 0.0, icosahedron_a, icosahedron_b), Vec3f( 0.0, icosahedron_a, icosahedron_b),
 End of changes. 1 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/