1
0
Fork 0

SG_ namespace.

This commit is contained in:
curt 2001-03-24 03:56:19 +00:00
parent 0e8b7763b1
commit f92570b07b
2 changed files with 16 additions and 16 deletions

View file

@ -71,8 +71,8 @@ static FGPolygon rwy_section_tex_coords( const FGPolygon& in_poly,
int i, j;
FGPolygon result;
result.erase();
// double length = rwy.length * FEET_TO_METER;
// double width = rwy.width * FEET_TO_METER;
// double length = rwy.length * SG_FEET_TO_METER;
// double width = rwy.width * SG_FEET_TO_METER;
Point3D center = tp.get_center();
Point3D min = tp.get_min();
@ -438,11 +438,11 @@ static void gen_simple_rwy( const FGRunway& rwy_info, const string& material,
cout << "clipped_a = " << clipped_a.contours() << endl;
*accum = polygon_union( runway_a, *accum );
tp = FGTexParams( Point3D( rwy_info.lon, rwy_info.lat, 0 ),
Point3D( (-rwy_info.width / 2.0) * FEET_TO_METER,
Point3D( (-rwy_info.width / 2.0) * SG_FEET_TO_METER,
0.0,
0 ),
Point3D( (rwy_info.width / 2.0) * FEET_TO_METER,
(rwy_info.length / 2.0) * FEET_TO_METER,
Point3D( (rwy_info.width / 2.0) * SG_FEET_TO_METER,
(rwy_info.length / 2.0) * SG_FEET_TO_METER,
0.0 ),
rwy_info.heading );
texparams->push_back( tp );
@ -456,11 +456,11 @@ static void gen_simple_rwy( const FGRunway& rwy_info, const string& material,
cout << "clipped_b = " << clipped_b.contours() << endl;
*accum = polygon_union( runway_b, *accum );
tp = FGTexParams( Point3D( rwy_info.lon, rwy_info.lat, 0 ),
Point3D( (-rwy_info.width / 2.0) * FEET_TO_METER,
Point3D( (-rwy_info.width / 2.0) * SG_FEET_TO_METER,
0.0,
0 ),
Point3D( (rwy_info.width / 2.0) * FEET_TO_METER,
(rwy_info.length / 2.0) * FEET_TO_METER,
Point3D( (rwy_info.width / 2.0) * SG_FEET_TO_METER,
(rwy_info.length / 2.0) * SG_FEET_TO_METER,
0.0 ),
rwy_info.heading + 180.0 );
texparams->push_back( tp );
@ -621,11 +621,11 @@ static void gen_runway_section( const FGRunway& rwy_info,
FGTexParams tp;
tp = FGTexParams( Point3D( rwy_info.lon, rwy_info.lat, 0 ),
Point3D( start_wid * FEET_TO_METER,
end_len * FEET_TO_METER,
Point3D( start_wid * SG_FEET_TO_METER,
end_len * SG_FEET_TO_METER,
0.0 ),
Point3D( end_wid * FEET_TO_METER,
start_len * FEET_TO_METER,
Point3D( end_wid * SG_FEET_TO_METER,
start_len * SG_FEET_TO_METER,
0.0 ),
heading );
texparams->push_back( tp );

View file

@ -129,8 +129,8 @@ FGPolygon gen_runway_area( const FGRunway& runway,
*/
Point3D origin(runway.lon, runway.lat, 0);
l = runway.length * len_scale * FEET_TO_METER / 2.0;
w = runway.width * width_scale * FEET_TO_METER / 2.0;
l = runway.length * len_scale * SG_FEET_TO_METER / 2.0;
w = runway.width * width_scale * SG_FEET_TO_METER / 2.0;
// generate untransformed runway area vertices
tmp_list.add_node( 0, Point3D( l, w, 0 ) );
@ -172,8 +172,8 @@ FGPolygon gen_runway_w_mid( const FGRunway& runway,
*/
Point3D origin(runway.lon, runway.lat, 0);
l = runway.length * len_scale * FEET_TO_METER / 2.0;
w = runway.width * width_scale * FEET_TO_METER / 2.0;
l = runway.length * len_scale * SG_FEET_TO_METER / 2.0;
w = runway.width * width_scale * SG_FEET_TO_METER / 2.0;
// generate untransformed runway area vertices
tmp_list.add_node( 0, Point3D( l, w, 0 ) );