0024428: Implementation of LGPL license
[occt.git] / src / AppParCurves / AppParCurves_Variational.gxx
old mode 100755 (executable)
new mode 100644 (file)
index b562acb..92d8212
@@ -1,4 +1,17 @@
-// File AppParCurves_Variational.gxx
+// Copyright (c) 1996-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and / or modify it
+// under the terms of the GNU Lesser General Public version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
 // Jeannine PANCIATICI le 06/06/96
 // Igor FEOKTISTOV 14/12/98 - correction of Approximate() and Init().
 // Approximation d une MultiLine de points decrite par le tool MLineTool.
@@ -315,7 +328,7 @@ void AppParCurves_Variational::Init()
                                             Vt2d=TabV2d.Value(jp2d);
                                             Vt2d.Normalize();
                                             Vc2d=TabV2dcurv.Value(jp2d);
-                                            if (Abs(Abs(Vc2d.Angle(Vt2d)) - PI/2.) > Precision::Angular())
+                                            if (Abs(Abs(Vc2d.Angle(Vt2d)) - M_PI/2.) > Precision::Angular())
                                                  Standard_ConstructionError::Raise();
                                             myTabConstraints->SetValue(jndex++,Vt2d.X());
                                             myTabConstraints->SetValue(jndex++,Vt2d.Y());
@@ -373,7 +386,7 @@ void AppParCurves_Variational::Init()
                                             Vt2d=TabV2d.Value(jp2d);
                                             Vt2d.Normalize();
                                             Vc2d=TabV2dcurv.Value(jp2d);
-                                            if (Abs(Abs(Vc2d.Angle(Vt2d)) - PI/2.) > Precision::Angular())
+                                            if (Abs(Abs(Vc2d.Angle(Vt2d)) - M_PI/2.) > Precision::Angular())
                                                  Standard_ConstructionError::Raise();
                                             myTabConstraints->SetValue(jndex++,Vt2d.X());
                                             myTabConstraints->SetValue(jndex++,Vt2d.Y());