diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
commit | 3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch) | |
tree | 1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/angle.h | |
parent | d99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff) |
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/angle.h')
-rw-r--r-- | graphics/asymptote/angle.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/asymptote/angle.h b/graphics/asymptote/angle.h index 984b1546aa..686f5469d6 100644 --- a/graphics/asymptote/angle.h +++ b/graphics/asymptote/angle.h @@ -17,7 +17,7 @@ const double PI=acos(-1.0); const double Cpiby180=PI/180.0; const double C180bypi=180.0/PI; - + inline double radians(double theta) { return theta*Cpiby180; @@ -39,12 +39,12 @@ inline double angle(double x, double y, bool warn=true) } return atan2(y,x); } - + // Return an angle in the interval [0,360). inline double principalBranch(double deg) { deg=fmod(deg,360.0); - if(deg < 0) deg += 360.0; + if(deg < 0) deg += 360.0; return deg; } |