WCSLIB 8.4
|
#include <math.h>
#include "wcsconfig.h"
Go to the source code of this file.
Macros | |
#define | WCSTRIG_TOL 1e-10 |
Domain tolerance for asin() and acos() functions. | |
Functions | |
double | cosd (double angle) |
Cosine of an angle in degrees. | |
double | sind (double angle) |
Sine of an angle in degrees. | |
void | sincosd (double angle, double *sin, double *cos) |
Sine and cosine of an angle in degrees. | |
double | tand (double angle) |
Tangent of an angle in degrees. | |
double | acosd (double x) |
Inverse cosine, returning angle in degrees. | |
double | asind (double y) |
Inverse sine, returning angle in degrees. | |
double | atand (double s) |
Inverse tangent, returning angle in degrees. | |
double | atan2d (double y, double x) |
Polar angle of ![]() | |
When dealing with celestial coordinate systems and spherical projections (some moreso than others) it is often desirable to use an angular measure that provides an exact representation of the latitude of the north or south pole. The WCSLIB routines use the following trigonometric functions that take or return angles in degrees:
These "trigd" routines are expected to handle angles that are a multiple of
However, wcstrig.h also provides the choice of using preprocessor macro implementations of the trigd functions that don't test for multiples of
#define WCSTRIG_TOL 1e-10 |
Domain tolerance for asin() and acos() functions.
Domain tolerance for the asin() and acos() functions to allow for floating point rounding errors.
If
double cosd | ( | double | angle | ) |
Cosine of an angle in degrees.
cosd() returns the cosine of an angle given in degrees.
[in] | angle | [deg]. |
double sind | ( | double | angle | ) |
Sine of an angle in degrees.
sind() returns the sine of an angle given in degrees.
[in] | angle | [deg]. |
void sincosd | ( | double | angle, |
double * | sin, | ||
double * | cos ) |
Sine and cosine of an angle in degrees.
sincosd() returns the sine and cosine of an angle given in degrees.
[in] | angle | [deg]. |
[out] | sin | Sine of the angle. |
[out] | cos | Cosine of the angle. |
double tand | ( | double | angle | ) |
Tangent of an angle in degrees.
tand() returns the tangent of an angle given in degrees.
[in] | angle | [deg]. |
double acosd | ( | double | x | ) |
Inverse cosine, returning angle in degrees.
acosd() returns the inverse cosine in degrees.
[in] | x | in the range [-1,1]. |
double asind | ( | double | y | ) |
Inverse sine, returning angle in degrees.
asind() returns the inverse sine in degrees.
[in] | y | in the range [-1,1]. |
double atand | ( | double | s | ) |
Inverse tangent, returning angle in degrees.
atand() returns the inverse tangent in degrees.
[in] | s |
double atan2d | ( | double | y, |
double | x ) |
Polar angle of
atan2d() returns the polar angle,
[in] | y | Cartesian ![]() |
[in] | x | Cartesian ![]() |