1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)

This commit is contained in:
DBV
2011-12-16 08:50:03 +00:00
committed by bugmaster
parent bc650d4170
commit c6541a0c86
438 changed files with 2142 additions and 2188 deletions

View File

@@ -47,7 +47,7 @@
void IGESGraph_Color::HLSPercentage
(Standard_Real& Hue, Standard_Real& Lightness, Standard_Real& Saturation) const
{
Hue = ((1.0 / (2.0 * PI)) *
Hue = ((1.0 / (2.0 * M_PI)) *
(ATan(((2 * theRed) - theGreen - theBlue) /
(Sqrt(3) * (theGreen - theBlue)))));
Lightness = ((1.0 / 3.0) * (theRed + theGreen + theBlue));

View File

@@ -60,7 +60,7 @@ void IGESGraph_ToolTextDisplayTemplate::ReadOwnParams
// Reading slantAngle(Real)
PR.ReadReal (PR.Current(), "Slant Angle", slantAngle); //szv#4:S4163:12Mar99 `st=` not needed
else
slantAngle = PI/2.0; // Default Value
slantAngle = M_PI/2.0; // Default Value
// Reading rotationAngle(Real)
PR.ReadReal (PR.Current(), "Rotation Angle", rotationAngle); //szv#4:S4163:12Mar99 `st=` not needed