bf38d520923ed0d0478bbf4959e7af3ae58f0d5e
[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
5 /**
6  * An interface to modelling gravitational acceleration.
7  * 
8  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
9  */
10 public interface GravityModel extends Monitorable {
11
12         /**
13          * Compute the gravity at a specific altitude.
14          * 
15          * @param altitude      the altitude at which to compute the gravity
16          * @return                      the gravitational acceleration
17          */
18         public double getGravity(double altitude);
19         
20 }