|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectswisseph.SwissLib
public class SwissLib
This class offers many routines that might be interesting to a programmer.
One important note: in all this package, negative longitudes are considered to be west of Greenwich, positive longitudes are seen as east of Greenwich. Especially America often uses a different notation!
Probably most interesting are the functions swe_sidtime() (calculate the sidereal time) and swe_degnorm() (normalize a position to the range of 0.0 <= x < 360.0) and others.
コンストラクタの概要 | |
---|---|
SwissLib()
|
|
SwissLib(SwissData swed)
|
メソッドの概要 | |
---|---|
static double |
atof(java.lang.String src)
This method emulates the C version of atof() allowing any string to be parsed into a number. |
static int |
atoi(java.lang.String src)
This method emulates the C version of atoi() allowing any string to be parsed into an integer. |
double |
square_sum(double[] x)
|
double |
square_sum(double[] x,
int offset)
|
void |
swe_cotrans_sp(double[] xpo,
double[] xpn,
double eps)
|
void |
swe_cotrans(double[] xpo,
double[] xpn,
double eps)
|
void |
swe_cotrans(double[] xpo,
int oOffs,
double[] xpn,
int nOffs,
double eps)
|
int |
swe_d2l(double x)
double to int32 with rounding, no overflow check |
double |
swe_deg_midp(double x1,
double x0)
|
double |
swe_degnorm(double x)
Normalizes a double to the range of 0.0 >= x < 360.0. |
double |
swe_difdeg2n(double p1,
double p2)
This calculates the difference of the two angles p1, p2 and normalizes them to a range of -180.0 <= x < 180.0 degrees. |
double |
swe_difrad2n(double p1,
double p2)
|
double |
swe_rad_midp(double x1,
double x0)
|
double |
swe_radnorm(double x)
Normalizes a double to the range 0.0 >= x < 2*PI. |
double |
swe_sidtime(double tjd_ut)
This calculates the sidereal time from a Julian day number. |
double |
swe_sidtime0(double tjd,
double eps,
double nut)
This calculates the sidereal time from a Julian day number, the obliquity of the eclipse and the nutation (in degrees). |
void |
swe_split_deg(double ddeg,
int roundflag,
IntObj ideg,
IntObj imin,
IntObj isec,
DblObj dsecfr,
IntObj isgn)
function for splitting centiseconds into * ideg degrees, imin minutes, isec seconds, dsecfr fraction of seconds isgn zodiac sign number; or +/- sign |
double |
swi_angnorm(double x)
|
void |
swi_cartpol_sp(double[] x,
double[] l)
|
void |
swi_cartpol_sp(double[] x,
int xOffs,
double[] l,
int lOffs)
|
void |
swi_cartpol(double[] x,
double[] l)
|
void |
swi_cartpol(double[] x,
int xOffs,
double[] l,
int lOffs)
|
void |
swi_coortrf(double[] xpo,
double[] xpn,
double eps)
|
void |
swi_coortrf(double[] xpo,
int oOffs,
double[] xpn,
int nOffs,
double eps)
|
void |
swi_coortrf2(double[] xpo,
double[] xpn,
double sineps,
double coseps)
|
void |
swi_coortrf2(double[] xpo,
int oOffs,
double[] xpn,
int nOffs,
double sineps,
double coseps)
|
void |
swi_cross_prod(double[] a,
int aOffs,
double[] b,
int bOffs,
double[] x,
int xOffs)
|
int |
swi_cutstr(java.lang.String s,
java.lang.String cutlist,
java.lang.String[] cpos,
int nmax)
Cut the String s at any character in cutlist and put the resulting Strings into String cpos[]. |
double |
swi_dot_prod_unit(double[] x,
double[] y)
|
double |
swi_echeb(double x,
double[] coef,
int offs,
int ncf)
|
double |
swi_edcheb(double x,
double[] coef,
int offs,
int ncf)
|
double |
swi_epsiln(double J)
|
void |
swi_FK4_FK5(double[] xp,
double tjd)
|
void |
swi_FK5_FK4(double[] xp,
double tjd)
|
java.lang.String |
swi_gen_filename(SweDate sd,
int ipli)
|
double |
swi_kepler(double E,
double M,
double ecce)
|
double |
swi_mod2PI(double x)
|
void |
swi_polcart_sp(double[] l,
double[] x)
|
void |
swi_polcart_sp(double[] l,
int lOffs,
double[] x,
int xOffs)
|
void |
swi_polcart(double[] l,
double[] x)
|
void |
swi_polcart(double[] l,
int lOffs,
double[] x,
int xOffs)
|
int |
swi_precess(double[] R,
double J,
int direction)
|
int |
swi_precess(double[] R,
int rOffs,
double J,
int direction)
|
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public SwissLib()
public SwissLib(SwissData swed)
メソッドの詳細 |
---|
public double square_sum(double[] x)
public double square_sum(double[] x, int offset)
public double swe_degnorm(double x)
public double swe_radnorm(double x)
public double swe_deg_midp(double x1, double x0)
public double swe_rad_midp(double x1, double x0)
public double swi_mod2PI(double x)
public double swi_angnorm(double x)
public void swi_cross_prod(double[] a, int aOffs, double[] b, int bOffs, double[] x, int xOffs)
public double swi_echeb(double x, double[] coef, int offs, int ncf)
public double swi_edcheb(double x, double[] coef, int offs, int ncf)
public void swe_cotrans(double[] xpo, double[] xpn, double eps)
public void swe_cotrans(double[] xpo, int oOffs, double[] xpn, int nOffs, double eps)
public void swe_cotrans_sp(double[] xpo, double[] xpn, double eps)
public void swi_coortrf(double[] xpo, double[] xpn, double eps)
public void swi_coortrf(double[] xpo, int oOffs, double[] xpn, int nOffs, double eps)
public void swi_coortrf2(double[] xpo, double[] xpn, double sineps, double coseps)
public void swi_coortrf2(double[] xpo, int oOffs, double[] xpn, int nOffs, double sineps, double coseps)
public void swi_cartpol(double[] x, double[] l)
public void swi_cartpol(double[] x, int xOffs, double[] l, int lOffs)
public void swi_polcart(double[] l, double[] x)
public void swi_polcart(double[] l, int lOffs, double[] x, int xOffs)
public void swi_cartpol_sp(double[] x, double[] l)
public void swi_cartpol_sp(double[] x, int xOffs, double[] l, int lOffs)
public void swi_polcart_sp(double[] l, double[] x)
public void swi_polcart_sp(double[] l, int lOffs, double[] x, int xOffs)
public double swi_dot_prod_unit(double[] x, double[] y)
public double swi_epsiln(double J)
public int swi_precess(double[] R, double J, int direction)
public int swi_precess(double[] R, int rOffs, double J, int direction)
public int swi_cutstr(java.lang.String s, java.lang.String cutlist, java.lang.String[] cpos, int nmax)
s
- The input string.cutlist
- A String specifying all characters, where the input string
should be cut.cpos
- Input and output paramater: a String[] containing maximum
'nmax' Strings.nmax
- The size of the cpos array. A relict from the C version...
public double swe_sidtime0(double tjd, double eps, double nut)
tjd
- The Julian day numbereps
- Obliquity of the eclipticnut
- Nutation in degrees
swe_sidtime(double)
public double swe_sidtime(double tjd_ut)
tjd_ut
- The Julian day number (in UT)
swe_sidtime0(double, double, double)
public java.lang.String swi_gen_filename(SweDate sd, int ipli)
public void swe_split_deg(double ddeg, int roundflag, IntObj ideg, IntObj imin, IntObj isec, DblObj dsecfr, IntObj isgn)
public double swi_kepler(double E, double M, double ecce)
public void swi_FK4_FK5(double[] xp, double tjd)
public void swi_FK5_FK4(double[] xp, double tjd)
public int swe_d2l(double x)
public double swe_difdeg2n(double p1, double p2)
p1
- The angle of point 1p2
- The angle of point 2
public double swe_difrad2n(double p1, double p2)
public static double atof(java.lang.String src)
public static int atoi(java.lang.String src)
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |