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); 197 double cosd(
double angle);
198 double sind(
double angle);
199 void sincosd(
double angle,
double *sin,
double *cos);
200 double tand(
double angle);
201 double acosd(
double x);
202 double asind(
double y);
203 double atand(
double s);
204 double atan2d(
double y,
double x);
207 #define WCSTRIG_TOL 1e-10 209 #endif // WCSTRIG_MACRO 216 #endif // WCSLIB_WCSTRIG 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 acosd(double x)
Inverse cosine, returning angle in degrees.
double tand(double angle)
Tangent of an angle in degrees.
double atan2d(double y, double x)
Polar angle of , in degrees.
double atand(double s)
Inverse tangent, returning angle in degrees.
double sind(double angle)
Sine of an angle in degrees.