|
JEphem site jephem API Build classes |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tig.maths.Maths
Abstract class containing mathematical constants and static methods.
Field Summary | |
static double |
ARCSEC_TO_RAD
Constant to convert arc seconds to radians, whose value is p / (180 * 3600). |
static double |
ln10
Constant whose value is ln(10). |
static double |
RAD_TO_ARCSEC
Constant to convert radians to arc seconds, whose value is 180 * 3600 / p. |
static double |
TWOPI
Constant whose value is 2 x p. |
Constructor Summary | |
Maths()
|
Method Summary | |
static double |
atan3(double y,
double x)
Computation of arcTangent, giving a result in [0, 2*p[. |
static double |
log10(double x)
Computes the 10 based logarithm of a number. |
static double |
max(double[] a)
Returns the greatest double of an array. |
static int |
max(int[] a)
Returns the greatest integer of an array. |
static double |
min(double[] a)
Returns the smallest double of an array. |
static double |
mod360(double nb)
Reduction of a number in the interval [0, 360]. |
static int |
mod360(int nb)
Reduction of a number in the interval [0, 360], for an integer. |
static double |
modX(double nb,
double limit)
Reduction of a number in the interval [0, limit]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double TWOPI
public static final double ln10
public static final double ARCSEC_TO_RAD
public static final double RAD_TO_ARCSEC
Constructor Detail |
public Maths()
Method Detail |
public static double mod360(double nb)
nb
- any number.
nb
modulo 360
.public static int mod360(int nb)
nb
- any number.
nb
modulo 360
.public static double modX(double nb, double limit)
nb
- any number.limit
- any positive number.
nb
modulo limit
.public static double atan3(double y, double x)
alpha
such as cos(alpha) = x/sqrt(x*x + y*y)
and
sin(alpha) = y/sqrt(x*x + y*y)
and alpha belongs to [0, 2*p[.public static double log10(double x)
x
.public static int max(int[] a)
public static double max(double[] a)
public static double min(double[] a)
|
JEphem site jephem API Build classes |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |