Next Previous Up Contents
Next: URLs
Up: Functions
Previous: Times

#### 10.6.19 TrigDegrees

Standard trigonometric functions with angles in degrees.

`sinDeg( theta )`
  Sine of an angle.

  - Parameters:
    - `theta` (floating point): an angle, in degrees
  - Return value
    - (floating point): the sine of the argument
`cosDeg( theta )`
  Cosine of an angle.

  - Parameters:
    - `theta` (floating point): an angle, in degrees
  - Return value
    - (floating point): the cosine of the argument
`tanDeg( theta )`
  Tangent of an angle.

  - Parameters:
    - `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.

  - Parameters:
    - `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.

  - Parameters:
    - `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.

  - Parameters:
    - `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.

  - Parameters:
    - `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: URLs
Up: Functions
Previous: Times

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk