mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026823: Configuration - use EGL on another platform without GLX
This commit is contained in:
@@ -1342,7 +1342,12 @@ Standard_Real ElCLib::HyperbolaParameter (const gp_Ax2& Pos,
|
||||
Standard_Real sht =
|
||||
gp_Vec(Pos.Location (), P).Dot
|
||||
(gp_Vec (Pos.YDirection())) / MinorRadius;
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
return std::asinh(sht);
|
||||
#else
|
||||
return asinh(sht);
|
||||
#endif
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@@ -1421,7 +1426,11 @@ Standard_Real ElCLib::HyperbolaParameter (const gp_Ax22d& Pos,
|
||||
{
|
||||
gp_Vec2d V (Pos.YDirection().XY());
|
||||
Standard_Real sht = gp_Vec2d(Pos.Location(),P).Dot(V) /MinorRadius;
|
||||
return asinh(sht);
|
||||
#if __cplusplus >= 201103L
|
||||
return std::asinh(sht);
|
||||
#else
|
||||
return asinh(sht);
|
||||
#endif
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user