|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vizzini.math.orbit.AbstractOrbit
public abstract class AbstractOrbit
Provides base functionality for an orbit.
N = kg m sec^-2
a = F / m => N kg^-1 = m sec^-2
So define a kilo-Newton = 1000 N
a = F / m => kN kg^-1 = km sec^-2
Constructor Summary | |
---|---|
protected |
AbstractOrbit(double mu,
double a,
double ecc,
double i,
double omega,
double w,
double nu0)
Construct this object using the given parameters. |
protected |
AbstractOrbit(double mu,
double a,
double ecc,
double i,
double omega,
double w,
double nu0,
double t0)
Construct this object using the given parameters. |
protected |
AbstractOrbit(double mu,
Vector r,
Vector v)
Construct this object using the given parameters. |
protected |
AbstractOrbit(double mu,
Vector r0,
Vector v0,
double t0)
Construct this object using the given parameters. |
Method Summary | |
---|---|
double |
getA()
Return the semi-major axis. |
Vector |
getE()
Return the eccentricity vector. |
double |
getEcc()
Return the eccentricity. |
double |
getEccentricAnomaly(double t)
Return the eccentric anomaly. |
double |
getEccentricAnomaly0()
Return the eccentric anomaly at epoch. |
Vector |
getH()
Return the angular momentum vector. |
double |
getI()
Return the inclination. |
double |
getMeanAnomaly(double t)
Return the mean anomaly. |
double |
getMeanAnomaly0()
Return the mean anomaly at epoch. |
double |
getMu()
Return the gravitational parameter of central body. |
Vector |
getN()
Return the node vector. |
double |
getOmega()
Return the longitude of the ascending node. |
double |
getPeriod()
Return the orbital period. |
Vector |
getR(double t)
Return the position vector. |
Vector |
getR0()
Return the position vector at epoch. |
double |
getRa()
Return the apoapsis radius. |
double |
getRp()
Return the periapsis radius. |
double |
getT0()
Return the time of epoch. |
double |
getTrueAnomaly(double t)
Return the true anomaly. |
double |
getTrueAnomaly0()
Return the true anomaly at epoch. |
Vector |
getV(double t)
Return the velocity vector. |
Vector |
getV0()
Return the velocity vector at epoch. |
double |
getVa()
Return the apoapsis speed. |
double |
getVp()
Return the periapsis speed. |
double |
getW()
Return the argument of periapsis. |
boolean |
isVectorBased()
Return true if this orbit is vector based. |
protected void |
setA(double a)
|
protected void |
setEcc(double ecc)
|
protected void |
setI(double i)
|
protected void |
setMu(double mu)
|
protected void |
setOmega(double omega)
|
protected void |
setR0(Vector r0)
|
protected void |
setT0(double t0)
|
protected void |
setTrueAnomaly0(double nu0)
|
protected void |
setV0(Vector v0)
|
protected void |
setW(double w)
|
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractOrbit(double mu, Vector r, Vector v)
mu
- Gravitational parameter of central body. (km^3 sec^-2)r
- Position vector. (km)v
- Velocity vector. (km/sec)protected AbstractOrbit(double mu, Vector r0, Vector v0, double t0)
mu
- Gravitational parameter of central body. (km^3 sec^-2)r0
- Position vector at epoch. (km)v0
- Velocity vector at epoch. (km/sec)t0
- Epoch time of parameters. (sec)protected AbstractOrbit(double mu, double a, double ecc, double i, double omega, double w, double nu0)
mu
- Gravitational parameter of central body. (km^3 sec^-2)a
- Semi-major axis. (km)ecc
- Eccentricity.i
- Inclination. (radians)omega
- Longitude of the ascending node. (radians)w
- Argument of periapsis. (radians)nu0
- True anomaly at epoch. (radians)protected AbstractOrbit(double mu, double a, double ecc, double i, double omega, double w, double nu0, double t0)
mu
- Gravitational parameter of central body. (km^3 sec^-2)a
- Semi-major axis. (km)ecc
- Eccentricity.i
- Inclination. (radians)omega
- Longitude of the ascending node. (radians)w
- Argument of periapsis. (radians)nu0
- True anomaly at epoch. (radians)t0
- Epoch time of parameters. (sec)Method Detail |
---|
public double getA()
getA
in interface IOrbit
public Vector getE()
getE
in interface IOrbit
public double getEcc()
getEcc
in interface IOrbit
public double getEccentricAnomaly(double t)
getEccentricAnomaly
in interface IOrbit
t
- Time of interest. (sec)public double getEccentricAnomaly0()
getEccentricAnomaly0
in interface IOrbit
public Vector getH()
getH
in interface IOrbit
public double getI()
getI
in interface IOrbit
public double getMeanAnomaly(double t)
getMeanAnomaly
in interface IOrbit
t
- Time of interest. (sec)public double getMeanAnomaly0()
getMeanAnomaly0
in interface IOrbit
public double getMu()
getMu
in interface IOrbit
public Vector getN()
getN
in interface IOrbit
public double getOmega()
getOmega
in interface IOrbit
public double getPeriod()
getPeriod
in interface IOrbit
public Vector getR(double t)
getR
in interface IOrbit
t
- Time of interest. (sec)public Vector getR0()
getR0
in interface IOrbit
public double getRa()
getRa
in interface IOrbit
public double getRp()
getRp
in interface IOrbit
public double getT0()
getT0
in interface IOrbit
public double getTrueAnomaly(double t)
IOrbit
getTrueAnomaly
in interface IOrbit
t
- Time of interest. (sec)
public double getTrueAnomaly0()
IOrbit
getTrueAnomaly0
in interface IOrbit
public Vector getV(double t)
getV
in interface IOrbit
t
- Time of interest. (sec)public Vector getV0()
getV0
in interface IOrbit
public double getVa()
getVa
in interface IOrbit
public double getVp()
getVp
in interface IOrbit
public double getW()
getW
in interface IOrbit
public boolean isVectorBased()
isVectorBased
in interface IOrbit
public String toString()
toString
in class Object
protected void setA(double a)
a
- The a to set. (km)protected void setEcc(double ecc)
ecc
- The ecc to set.protected void setI(double i)
i
- The i to set. (radians)protected void setMu(double mu)
mu
- The mu to set. (km^3 sec^-2)protected void setOmega(double omega)
omega
- The omega to set. (radians)protected void setR0(Vector r0)
r0
- The r0 to set. (km)protected void setT0(double t0)
t0
- The t0 to set. (sec)protected void setTrueAnomaly0(double nu0)
nu0
- The nu0 to set. (radians)protected void setV0(Vector v0)
v0
- The v0 to set. (km/sec)protected void setW(double w)
w
- The w to set. (radians)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |