org.stellarium.astro
Class Meteor

java.lang.Object
  extended by org.stellarium.astro.Meteor

 class Meteor
extends java.lang.Object


Field Summary
private  double absMag
          absolute magnitude
private  boolean alive
          Is it still visible?
private  double distMultiplier
          scale magnitude due to changes in distance
(package private) static double EARTH_RADIUS
           
private  double endH
          End height
(package private) static double HIGH_ALTITUDE
           
private  double initDist
          initial distance from observer
(package private) static double LOW_ALTITUDE
           
private  double mag
          Apparent magnitude at head, 0-1
private  double maxMag
          0-1
private  double minDist
          nearest point to observer along path
private  javax.vecmath.Matrix4d mmat
          Tranformation matrix to align radiant with earth direction of travel
private  javax.vecmath.Point3d obs
          Observer position in meteor coord. system
private  javax.vecmath.Point3d posInternal
          Middle of train
private  javax.vecmath.Point3d position
          Equatorial coordinate position
private  javax.vecmath.Point3d posTrain
          End of train
private  double startH
          Start height above center of earth
private  boolean train
          Point or train visible?
private  double velocity
          km/s
(package private) static double VISIBLE_RADIUS
           
private  double visMag
          visual magnitude at observer
private  double xyDistance
          distance in XY plane (orthogonal to meteor path) from observer to meteor
 
Constructor Summary
Meteor(DefaultProjector proj, NavigatorIfc nav, ToneReproductor eye, double v)
           
 
Method Summary
(package private)  boolean draw(DefaultProjector proj, Navigator nav)
          returns true if visible
(package private)  boolean isAlive()
           
(package private)  boolean update(int deltaTime)
          returns true if alive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EARTH_RADIUS

static final double EARTH_RADIUS
See Also:
Constant Field Values

HIGH_ALTITUDE

static final double HIGH_ALTITUDE
See Also:
Constant Field Values

LOW_ALTITUDE

static final double LOW_ALTITUDE
See Also:
Constant Field Values

VISIBLE_RADIUS

static final double VISIBLE_RADIUS
See Also:
Constant Field Values

mmat

private javax.vecmath.Matrix4d mmat
Tranformation matrix to align radiant with earth direction of travel


obs

private javax.vecmath.Point3d obs
Observer position in meteor coord. system


position

private javax.vecmath.Point3d position
Equatorial coordinate position


posInternal

private javax.vecmath.Point3d posInternal
Middle of train


posTrain

private javax.vecmath.Point3d posTrain
End of train


train

private boolean train
Point or train visible?


startH

private double startH
Start height above center of earth


endH

private double endH
End height


velocity

private double velocity
km/s


alive

private boolean alive
Is it still visible?


mag

private double mag
Apparent magnitude at head, 0-1


maxMag

private double maxMag
0-1


absMag

private double absMag
absolute magnitude


visMag

private double visMag
visual magnitude at observer


xyDistance

private double xyDistance
distance in XY plane (orthogonal to meteor path) from observer to meteor


initDist

private double initDist
initial distance from observer


minDist

private double minDist
nearest point to observer along path


distMultiplier

private double distMultiplier
scale magnitude due to changes in distance

Constructor Detail

Meteor

Meteor(DefaultProjector proj,
       NavigatorIfc nav,
       ToneReproductor eye,
       double v)
Method Detail

update

boolean update(int deltaTime)
returns true if alive

Parameters:
deltaTime -
Returns:

draw

boolean draw(DefaultProjector proj,
             Navigator nav)
returns true if visible

Parameters:
proj -
nav -
Returns:

isAlive

boolean isAlive()