SGD_PI.
This commit is contained in:
parent
56745955f3
commit
f6e553a1b6
5 changed files with 6 additions and 6 deletions
|
@ -113,7 +113,7 @@ static FGPolygon rwy_section_tex_coords( const FGPolygon& in_poly,
|
|||
while ( course < -360 ) { course += 360; }
|
||||
while ( course > 360 ) { course -= 360; }
|
||||
// cout << "Dist = " << dist << endl;
|
||||
// cout << " Course = " << course * 180.0 / SG_PI << endl;
|
||||
// cout << " Course = " << course * 180.0 / SGD_PI << endl;
|
||||
|
||||
//
|
||||
// 3. Convert from polar to cartesian coordinates
|
||||
|
|
|
@ -93,7 +93,7 @@ bool test_point(Point3D Pa, Point3D Pb, Point3D Pc) {
|
|||
|
||||
// printf("a1 = %.2f a2 = %.2f\n", a1 * SGD_RADIANS_TO_DEGREES, a2 * SGD_RADIANS_TO_DEGREES);
|
||||
|
||||
return ( (a1 + a2) < SG_PI );
|
||||
return ( (a1 + a2) < SGD_PI );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ void FGClipper::move_slivers( FGPolygon& in, FGPolygon& out ) {
|
|||
/* cout << " min_angle (rad) = "
|
||||
<< min_angle << endl;
|
||||
cout << " min_angle (deg) = "
|
||||
<< min_angle * 180.0 / SG_PI << endl;
|
||||
<< min_angle * 180.0 / SGD_PI << endl;
|
||||
cout << " area = " << area << endl; */
|
||||
|
||||
if ( ((min_angle < angle_cutoff) && (area < area_cutoff)) ||
|
||||
|
|
|
@ -83,7 +83,7 @@ int_list FGGenOutput::calc_tex_coords( FGConstruct& c, point_list geod_nodes,
|
|||
double clat_rad = clat * SGD_DEGREES_TO_RADIANS;
|
||||
double cos_lat = cos( clat_rad );
|
||||
double local_radius = cos_lat * SG_EQUATORIAL_RADIUS_M;
|
||||
double local_perimeter = 2.0 * local_radius * SG_PI;
|
||||
double local_perimeter = 2.0 * local_radius * SGD_PI;
|
||||
double degree_width = local_perimeter / 360.0;
|
||||
|
||||
// cout << "clat = " << clat << endl;
|
||||
|
@ -93,7 +93,7 @@ int_list FGGenOutput::calc_tex_coords( FGConstruct& c, point_list geod_nodes,
|
|||
// cout << "local_perimeter = " << local_perimeter << endl;
|
||||
// cout << "degree_width = " << degree_width << endl;
|
||||
|
||||
double perimeter = 2.0 * SG_EQUATORIAL_RADIUS_M * SG_PI;
|
||||
double perimeter = 2.0 * SG_EQUATORIAL_RADIUS_M * SG_DPI;
|
||||
double degree_height = perimeter / 360.0;
|
||||
// cout << "degree_height = " << degree_height << endl;
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ double FGPolygon::minangle_contour( const int contour ) {
|
|||
int p1_index, p2_index, p3_index;
|
||||
point2d p1, p2, p3;
|
||||
double angle;
|
||||
double min_angle = 2.0 * SG_PI;
|
||||
double min_angle = 2.0 * SGD_PI;
|
||||
|
||||
for ( int i = 0; i < size; ++i ) {
|
||||
p1_index = i - 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue