From: abn Date: Wed, 29 Apr 2015 08:58:10 +0000 (+0200) Subject: Suggestion: GetAbsoluteAngleOfNormalizedVect() actually does exaclty the same as... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3684caeb936231d8b81a70f5fce5634a152872c2;p=tools%2Fmedcoupling.git Suggestion: GetAbsoluteAngleOfNormalizedVect() actually does exaclty the same as atan2() :-) --- diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx index 66c6d2ea4..99fd1d492 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx @@ -529,7 +529,7 @@ double EdgeArcCircle::GetAbsoluteAngle(const double *vect, double& normVect) */ double EdgeArcCircle::GetAbsoluteAngleOfNormalizedVect(double ux, double uy) { - //When arc is lower than 0.707 Using Asin + //When arc is lower than 0.707 Using Asin if(fabs(ux)<0.707) { double ret=SafeAcos(ux); @@ -550,6 +550,11 @@ double EdgeArcCircle::GetAbsoluteAngleOfNormalizedVect(double ux, double uy) } } +//double EdgeArcCircle::GetAbsoluteAngleOfNormalizedVect(double ux, double uy) +//{ +// return atan2(uy, ux); +//} + void EdgeArcCircle::GetArcOfCirclePassingThru(const double *start, const double *middle, const double *end, double *center, double& radius, double& angleInRad, double& angleInRad0) {