jsky.coords
Class Trigod

java.lang.Object
  extended by jsky.coords.Trigod

public class Trigod
extends Object

Trigonometric Function in degrees.

This class is based on C routintes by Francois Ochsenbein [ESO-IPG].


Constructor Summary
Trigod()
           
 
Method Summary
static double acosd(double x)
          Computes the Arc cos in degrees (Range of argument [-1, +1]).
static double atan2d(double x, double y)
          Cartesian to polar.
static double atand(double x)
           
static double cosd(double x)
          Computation of cosine (argument in degrees).
static double sind(double x)
          Computes the sine (argument in degrees)
static double tand(double x)
          Computes the tangent (argument in degrees).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trigod

public Trigod()
Method Detail

cosd

public static double cosd(double x)
Computation of cosine (argument in degrees).

Parameters:
x - argument in degrees
Returns:
cosine (double).

sind

public static double sind(double x)
Computes the sine (argument in degrees)

Returns:
sine of argument (double)

tand

public static double tand(double x)
Computes the tangent (argument in degrees). For +90 degrees, DOUBLE_MAX is returned; For -90 degrees, -DOUBLE_MAX is returned

Returns:
tangent of argument (double)

atand

public static double atand(double x)

atan2d

public static double atan2d(double x,
                            double y)
Cartesian to polar.

Parameters:
x - X argument in degrees.
y - Y argument in degrees.
Returns:
Angle in range [-180, 180].

acosd

public static double acosd(double x)
Computes the Arc cos in degrees (Range of argument [-1, +1]).

Returns:
Arc cosine of argument (double), in range [0, 180].