mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 13:18:19 +08:00
Coding - Rework of Math global functions to stl (#833)
Majority of functions now simply call same functions from std namespace. Functions that duplicate std namespace functionality are declared deprecated. Calls of deprecated functions are replaced with std functions calls.
This commit is contained in:
@@ -81,7 +81,7 @@ IntSurf_Quadric::IntSurf_Quadric(const gp_Cone& C)
|
||||
lin.SetPosition(ax3.Axis());
|
||||
prm1 = C.RefRadius();
|
||||
prm2 = C.SemiAngle();
|
||||
prm3 = Cos(prm2);
|
||||
prm3 = std::cos(prm2);
|
||||
prm4 = 0.0;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ void IntSurf_Quadric::SetValue(const gp_Cone& C)
|
||||
lin.SetPosition(ax3.Axis());
|
||||
prm1 = C.RefRadius();
|
||||
prm2 = C.SemiAngle();
|
||||
prm3 = Cos(prm2);
|
||||
prm3 = std::cos(prm2);
|
||||
prm4 = 0.0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user