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:
@@ -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));
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user