Next Previous Up Contents
Next: KCorrections
Up: General Functions
Previous: Arithmetic

### B.1.8 TrigDegrees

Standard trigonometric functions with angles in degrees.

`sinDeg( theta )`
  Sine of an angle.
  - `theta` (floating point): an angle, in degrees
  - return value (floating point): the sine of the argument
`cosDeg( theta )`
  Cosine of an angle.
  - `theta` (floating point): an angle, in degrees
  - return value (floating point): the cosine of the argument
`tanDeg( theta )`
  Tangent of an angle.
  - `theta` (floating point): an angle, in degrees
  - return value (floating point): the tangent of the argument.
`asinDeg( x )`
  Arc sine. The result is in the range of -90 through 90.
  - `x` (floating point): the value whose arc sine is to be returned.
  - return value (floating point): the arc sine of the argument in degrees
`acosDeg( x )`
  Arc cosine. The result is in the range of 0.0 through 180.
  - `x` (floating point): the value whose arc cosine is to be returned.
  - return value (floating point): the arc cosine of the argument in degrees
`atanDeg( x )`
  Arc tangent. The result is in the range of -90 through 90.
  - `x` (floating point): the value whose arc tangent is to be returned.
  - return value (floating point): the arc tangent of the argument in degrees
`atan2Deg( y, x )`
  Converts rectangular coordinates (`x`,`y`) to polar (`r`,`theta`). This method computes the phase `theta` by computing an arc tangent of `y/x` in the range of -180 to 180.
  - `y` (floating point): the ordinate coordinate
  - `x` (floating point): the abscissa coordinate
  - return value (floating point): the `theta` component in degrees of the point (`r`,`theta`) in polar coordinates that corresponds to the point (`x`,`y`) in Cartesian coordinates.

Next Previous Up Contents
Next: KCorrections
Up: General Functions
Previous: Arithmetic

TOPCAT - Tool for OPerations on Catalogues And Tables
Starlink User Note253
TOPCAT web page: http://www.starlink.ac.uk/topcat/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk