]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/vasi.hxx
- commands do now have to start with @
[simgear.git] / simgear / scene / tgdb / vasi.hxx
index f36271a98ee25683a13b316749ad357b531dbbc2..10319d4fc7445ca8b119d665d3cc9ca153fea8ad 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Written by Curtis Olson, started December 2003.
 //
-// Copyright (C) 2003  Curtis L. Olson  - curt@flightgear.org
+// Copyright (C) 2003  Curtis L. Olson  - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -25,9 +25,9 @@
 #define _SG_VASI_HXX
 
 
-#ifndef __cplusplus                                                          
+#ifndef __cplusplus
 # error This library requires C++
-#endif                                   
+#endif
 
 
 #include <simgear/compiler.h>
@@ -82,7 +82,7 @@ public:
             if ( angle_deg < ref - trans ) {
                 color = 0.0;
             } else if ( angle_deg < ref + trans ) {
-                color = (ref + trans - angle_deg) * (1 / (2 * trans) );
+                color = 1.0 - (ref + trans - angle_deg) * (1 / (2 * trans) );
             } else {
                 color = 1.0;
             }
@@ -97,7 +97,7 @@ public:
             if ( angle_deg < ref - trans ) {
                 color = 0.0;
             } else if ( angle_deg < ref + trans ) {
-                color = (ref + trans - angle_deg) * (1 / (2 * trans) );
+                color = 1.0 - (ref + trans - angle_deg) * (1 / (2 * trans) );
             } else {
                 color = 1.0;
             }
@@ -112,7 +112,7 @@ public:
             if ( angle_deg < ref - trans ) {
                 color = 0.0;
             } else if ( angle_deg < ref + trans ) {
-                color = (ref + trans - angle_deg) * (1 / (2 * trans) );
+                color = 1.0 - (ref + trans - angle_deg) * (1 / (2 * trans) );
             } else {
                 color = 1.0;
             }
@@ -127,7 +127,7 @@ public:
             if ( angle_deg < ref - trans ) {
                 color = 0.0;
             } else if ( angle_deg < ref + trans ) {
-                color = (ref + trans - angle_deg) * (1 / (2 * trans) );
+                color = 1.0 - (ref + trans - angle_deg) * (1 / (2 * trans) );
             } else {
                 color = 1.0;
             }
@@ -142,7 +142,7 @@ public:
             if ( angle_deg < ref - trans ) {
                 color = 0.0;
             } else if ( angle_deg < ref + trans ) {
-                color = (ref + trans - angle_deg) * (1 / (2 * trans) );
+                color = 1.0 - (ref + trans - angle_deg) * (1 / (2 * trans) );
             } else {
                 color = 1.0;
             }
@@ -157,7 +157,7 @@ public:
             if ( angle_deg < ref - trans ) {
                 color = 0.0;
             } else if ( angle_deg < ref + trans ) {
-                color = (ref + trans - angle_deg) * (1 / (2 * trans) );
+                color = 1.0 - (ref + trans - angle_deg) * (1 / (2 * trans) );
             } else {
                 color = 1.0;
             }