X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Fmodels%2Fgravity%2FGravityModel.java;h=7feba89246ac3a78d4b75620ebb171a5806ff9ad;hb=601e76c57135056b8e0997019c49f3c695d61e45;hp=bf38d520923ed0d0478bbf4959e7af3ae58f0d5e;hpb=b3e9fe9c4d2a392bb28ae2bc2ead4c5038677919;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/models/gravity/GravityModel.java b/src/net/sf/openrocket/models/gravity/GravityModel.java index bf38d520..7feba892 100644 --- a/src/net/sf/openrocket/models/gravity/GravityModel.java +++ b/src/net/sf/openrocket/models/gravity/GravityModel.java @@ -1,20 +1,29 @@ package net.sf.openrocket.models.gravity; -import net.sf.openrocket.util.Monitorable; +//import net.sf.openrocket.util.Monitorable; +import net.sf.openrocket.util.WorldCoordinate; /** * An interface to modelling gravitational acceleration. * * @author Sampo Niskanen */ -public interface GravityModel extends Monitorable { +public interface GravityModel { //extends Monitorable { /** - * Compute the gravity at a specific altitude. + * Compute the gravity at a specific altitude above equator. * * @param altitude the altitude at which to compute the gravity * @return the gravitational acceleration */ - public double getGravity(double altitude); + //public double getGravity(double altitude); + + + /** + * Compute the gravity at a given world coordinate + * @param wc + * @return gravitational acceleration in m/s/s + */ + public double getGravity(WorldCoordinate wc); }