View difference between Paste ID: eLwnyv3S and 8wgqAiYQ
SHOW: | | - or go back to the newest paste.
1-
Index: OSGMath.h
1+
Index: Constructor/Operations/TerrainConfig.cs
2
===================================================================
3-
--- OSGMath.h	(revision 91664)
3+
--- Constructor/Operations/TerrainConfig.cs	(revision 6372)
4-
+++ OSGMath.h	(working copy)
4+
+++ Constructor/Operations/TerrainConfig.cs	(working copy)
5-
@@ -70,6 +70,22 @@
5+
@@ -1389,10 +1389,8 @@
6-
 	return a.x() * b.y() - b.x() * a.y();
6+
                 }
7-
 }
7+
                 b.AppendLine("}");
8
 
9-
+/**
9+
-                if (taxiways.Enabled && !string.IsNullOrEmpty(taxiways.Value))
10-
+ * wrapAngle - Приводит значение угла к соответствующему значению из полуинтервала [-Pi, Pi)
10+
+                if (taxiways.Enabled)
11-
+ */
11+
                     TerrainConfig.WriteToFile(airfieldLua, b.ToString());
12-
+inline double wrapAngle(double angle)
12+
-                else
13-
+{
13+
-                    TerrainConfig.WriteToFile(airfieldLua, "");
14-
+	return angle - 2 * M_PI * floor((angle + M_PI) / (2 * M_PI));
14+
             }
15-
 }
15+
         }