|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Vector6
spice.basic.StateVector
public class StateVector
Class StateVector represents states (positions and velocities) of ephemeris objects relative to other objects. StateVectors implicitly carry units of kilometers and kilometers/second.
Added constructors corresponding to CSPICE methods CSPICE.spkcpo CSPICE.spkcpt CSPICE.spkcvo CSPICE.spkcvt
Constructor Summary | |
---|---|
StateVector()
Default constructor: create a zero-filled state vector. |
|
StateVector(Body target,
Time t,
ReferenceFrame ref,
AberrationCorrection abcorr,
Body observer)
Construct aberration-corrected StateVector from ephemeris data. |
|
StateVector(Body target,
Time t,
ReferenceFrame outref,
java.lang.String refloc,
AberrationCorrection abcorr,
Vector3 obspos,
Body obsctr,
ReferenceFrame obsref)
Construct aberration-corrected StateVector from ephemeris data and an observer position vector. |
|
StateVector(Body target,
Time t,
ReferenceFrame outref,
java.lang.String refloc,
AberrationCorrection abcorr,
Vector6 obssta,
Time obsepc,
Body obsctr,
ReferenceFrame obsref)
Construct aberration-corrected StateVector from ephemeris data and an observer state vector. |
|
StateVector(double[] v)
Construct a StateVector from a double array of length 6. |
|
StateVector(StateVector state)
Copy constructor: create a deep copy of another StateVector. |
|
StateVector(Vector3 trgpos,
Body trgctr,
ReferenceFrame trgref,
Time t,
ReferenceFrame outref,
java.lang.String refloc,
AberrationCorrection abcorr,
Body obsrvr)
Construct aberration-corrected StateVector from ephemeris data and a target position vector. |
|
StateVector(Vector3 v1,
Vector3 v2)
Construct a StateVector from two Vector3 instances. |
|
StateVector(Vector6 v)
Construct a StateVector from a Vector6 instance. |
|
StateVector(Vector6 trgsta,
Time trgepc,
Body trgctr,
ReferenceFrame trgref,
Time t,
ReferenceFrame outref,
java.lang.String refloc,
AberrationCorrection abcorr,
Body obsrvr)
Construct aberration-corrected StateVector from ephemeris data and a target state vector. |
Method Summary | |
---|---|
static PositionVector |
correctStelab(PositionVector pobj,
VelocityVector vobs)
Correct a PositionVector for reception stellar aberration. |
static PositionVector |
correctStelabXmit(PositionVector pobj,
VelocityVector vobs)
Correct a PositionVector for transmission stellar aberration. |
PositionVector |
getPosition()
Return a PositionVector instance consisting of the position portion of this state vector. |
VelocityVector |
getVelocity()
Return a VelocityVector instance consisting of the velocity portion of this state vector. |
java.lang.String |
toString()
Create a String representation of this StateVector. |
Methods inherited from class spice.basic.Vector6 |
---|
add, assign, dcross, ddot, dhat, dist, dot, dsep, getElt, getVector3, isZero, lcom, negate, norm, scale, sub, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateVector()
public StateVector(StateVector state) throws SpiceException
SpiceException
public StateVector(Vector6 v)
public StateVector(double[] v) throws SpiceException
SpiceException
public StateVector(Vector3 v1, Vector3 v2)
public StateVector(Body target, Time t, ReferenceFrame ref, AberrationCorrection abcorr, Body observer) throws SpiceException
SpiceException
public StateVector(Body target, Time t, ReferenceFrame outref, java.lang.String refloc, AberrationCorrection abcorr, Vector3 obspos, Body obsctr, ReferenceFrame obsref) throws SpiceException
SpiceException
public StateVector(Body target, Time t, ReferenceFrame outref, java.lang.String refloc, AberrationCorrection abcorr, Vector6 obssta, Time obsepc, Body obsctr, ReferenceFrame obsref) throws SpiceException
SpiceException
public StateVector(Vector3 trgpos, Body trgctr, ReferenceFrame trgref, Time t, ReferenceFrame outref, java.lang.String refloc, AberrationCorrection abcorr, Body obsrvr) throws SpiceException
SpiceException
public StateVector(Vector6 trgsta, Time trgepc, Body trgctr, ReferenceFrame trgref, Time t, ReferenceFrame outref, java.lang.String refloc, AberrationCorrection abcorr, Body obsrvr) throws SpiceException
SpiceException
Method Detail |
---|
public PositionVector getPosition()
public VelocityVector getVelocity()
public java.lang.String toString()
toString
in class Vector6
public static PositionVector correctStelab(PositionVector pobj, VelocityVector vobs) throws SpiceException
SpiceException
public static PositionVector correctStelabXmit(PositionVector pobj, VelocityVector vobs) throws SpiceException
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |