]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/texcoord.cxx
Updates to build system to better support automake-1.5
[simgear.git] / simgear / misc / texcoord.cxx
index e9a5ff8043747ef2d702917e95eb4edfdf451df3..ee66504fadb98f8695aeff4722b10d6ab765be8a 100644 (file)
@@ -178,10 +178,10 @@ point_list calc_tex_coords( const SGBucket& b, const point_list& geod_nodes,
        clat = (int)clat - 0.5;
     }
 
-    double clat_rad = clat * DEG_TO_RAD;
+    double clat_rad = clat * SGD_DEGREES_TO_RADIANS;
     double cos_lat = cos( clat_rad );
-    double local_radius = cos_lat * EQUATORIAL_RADIUS_M;
-    double local_perimeter = 2.0 * local_radius * FG_PI;
+    double local_radius = cos_lat * SG_EQUATORIAL_RADIUS_M;
+    double local_perimeter = 2.0 * local_radius * SGD_PI;
     double degree_width = local_perimeter / 360.0;
 
     // cout << "clat = " << clat << endl;
@@ -191,7 +191,7 @@ point_list calc_tex_coords( const SGBucket& b, const point_list& geod_nodes,
     // cout << "local_perimeter = " << local_perimeter << endl;
     // cout << "degree_width = " << degree_width << endl;
 
-    double perimeter = 2.0 * EQUATORIAL_RADIUS_M * FG_PI;
+    double perimeter = 2.0 * SG_EQUATORIAL_RADIUS_M * SGD_PI;
     double degree_height = perimeter / 360.0;
     // cout << "degree_height = " << degree_height << endl;
 
@@ -323,10 +323,10 @@ point_list calc_tex_coords( const SGBucket& b, const point_list& geod_nodes,
            // cout << "adjusted_t " << adjusted_t << endl;
        }
 #endif
-       if ( adjusted_t.x() < FG_EPSILON ) {
+       if ( adjusted_t.x() < SG_EPSILON ) {
            adjusted_t.setx( 0.0 );
        }
-       if ( adjusted_t.y() < FG_EPSILON ) {
+       if ( adjusted_t.y() < SG_EPSILON ) {
            adjusted_t.sety( 0.0 );
        }
        adjusted_t.setz( 0.0 );