Go to the documentation of this file.
159 #ifndef WCSLIB_WCSTRIG
160 #define WCSLIB_WCSTRIG
164 #include "wcsconfig.h"
167 void sincos(
double angle,
double *sin,
double *cos);
180 #define cosd(X) cos((X)*D2R)
181 #define sind(X) sin((X)*D2R)
182 #define tand(X) tan((X)*D2R)
183 #define acosd(X) acos(X)*R2D
184 #define asind(X) asin(X)*R2D
185 #define atand(X) atan(X)*R2D
186 #define atan2d(Y,X) atan2(Y,X)*R2D
188 #define sincosd(X,S,C) sincos((X)*D2R,(S),(C))
190 #define sincosd(X,S,C) *(S) = sin((X)*D2R); *(C) = cos((X)*D2R);
199 void sincosd(
double angle,
double *sin,
double *cos);
207 #define WCSTRIG_TOL 1e-10
209 #endif // WCSTRIG_MACRO
216 #endif // WCSLIB_WCSTRIG
double atan2d(double y, double x)
Polar angle of , in degrees.
double tand(double angle)
Tangent of an angle in degrees.
double acosd(double x)
Inverse cosine, returning angle in degrees.
void sincosd(double angle, double *sin, double *cos)
Sine and cosine of an angle in degrees.
double cosd(double angle)
Cosine of an angle in degrees.
double asind(double y)
Inverse sine, returning angle in degrees.
double atand(double s)
Inverse tangent, returning angle in degrees.
double sind(double angle)
Sine of an angle in degrees.