7feba89246ac3a78d4b75620ebb171a5806ff9ad
[debian/openrocket] / src / net / sf / openrocket / models / gravity / GravityModel.java
1 package net.sf.openrocket.models.gravity;
2
3 //import net.sf.openrocket.util.Monitorable;
4 import net.sf.openrocket.util.WorldCoordinate;
5
6 /**
7  * An interface to modelling gravitational acceleration.
8  * 
9  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
10  */
11 public interface GravityModel { //extends Monitorable {
12
13         /**
14          * Compute the gravity at a specific altitude above equator.
15          * 
16          * @param altitude      the altitude at which to compute the gravity
17          * @return                      the gravitational acceleration
18          */
19         //public double getGravity(double altitude);
20         
21         
22         /**
23          * Compute the gravity at a given world coordinate
24          * @param wc
25          * @return gravitational acceleration in m/s/s
26          */
27         public double getGravity(WorldCoordinate wc);
28         
29 }