From 3684caeb936231d8b81a70f5fce5634a152872c2 Mon Sep 17 00:00:00 2001 From: abn Date: Wed, 29 Apr 2015 10:58:10 +0200 Subject: [PATCH] Suggestion: GetAbsoluteAngleOfNormalizedVect() actually does exaclty the same as atan2() :-) --- .../Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.39.2