org.rr0.is.presentation.view.report.applet.sky
Class SkyModel
org.rr0.is.presentation.view.report.applet.draw.DrawModel
|
+--org.rr0.is.presentation.view.report.applet.sky.SkyModel
- Direct Known Subclasses:
- UFOSceneModel
- public class SkyModel
- extends DrawModel
Model of a sky at a given date, location (latitude+longitude), azimut and altitude.
- Author:
- Jerôme Beau
- Version: 29 nov. 2003 14:33:15
altitude
private double altitude
azimut
private double azimut
DEGREES_89
public final static double DEGREES_89
DEGREES_TO_RADIANS
public final static double DEGREES_TO_RADIANS
ex
private double[] ex
ey
private double[] ey
factor
private double factor
lambda
private double lambda
- Longitude
lastTime
private GregorianCalendar lastTime
latitude
private double latitude
longitude
private double longitude
m
private double[] m
monthDays
private final int[] monthDays
phi
private double phi
- Latitude
PLANETS
private Planet[] PLANETS
RURAL_VISIBLE_MAGNITUDE
final static double RURAL_VISIBLE_MAGNITUDE
s
private double[] s
STARS
final CelestialBody[] STARS
TELESCOPE_VISIBLE_MAGNITUDE
final static double TELESCOPE_VISIBLE_MAGNITUDE
theta
private double theta
- Sideral time
TWO_PI
private final static double TWO_PI
URBAN_VISIBLE_MAGNITUDE
final static double URBAN_VISIBLE_MAGNITUDE
w
private double[] w
z
private double[] z
computeMatrix
void computeMatrix()
dateFortl
long dateFortl(GregorianCalendar currentTime)
exScalarProduct
public double exScalarProduct(double[] vector)
eyScalarProduct
public double eyScalarProduct(double[] vector)
getAltitude
public double getAltitude()
getFactor
public double getFactor()
getLatitude
public double getLatitude()
getLongitude
public double getLongitude()
getOffset
public int getOffset()
getPlanets
public Planet[] getPlanets()
getStar
public CelestialBody getStar(int mouseX, int mouseY, int xCenter, int yCenter)
montant
double montant(double[] vector)
mScalarProduct
public double mScalarProduct(double[] vector)
scalarProduct
double scalarProduct(double[] vector1, double[] vector2)
- Compute the scalar product of 2 vectors.
- Parameters:
- vector1 The first vector
- vector2 The second vector
- Returns: The cosinus of the angle between the 2 vectors (0 if the vectors are orthogonal).
setAltitude
public void setAltitude(int altitudeDegrees)
setAs
public void setAs(int as)
setAzimut
public void setAzimut(int someAzimut)
setLatitude
public void setLatitude(double latitudeDegrees)
setLongitude
public void setLongitude(double longitudeDegrees)
setTime
public void setTime(GregorianCalendar time)
sideralTime
double sideralTime(GregorianCalendar someCalendar, int gmtHour, double geoLongitude)
toString
public String toString()
vectorialProduct
double[] vectorialProduct(double[] vector1, double[] vector2)
to Class java.util.GregorianCalendar
to Class org.rr0.is.presentation.view.report.applet.sky.CelestialBody
to Class org.rr0.is.presentation.view.report.applet.sky.Planet