public class GravitationalAttractionWrench extends Object implements WrenchModel
Constructor and Description |
---|
GravitationalAttractionWrench(IInertiaModel spacecraft,
double mu)
Create a wrench model from an inertia model and a gravitational parameter
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
computeTorque(SpacecraftState s)
Compute the resulting torque at the mass centre of the spacecraft in the frame of the main part.
|
Vector3D |
computeTorque(SpacecraftState s,
Vector3D origin,
Frame frame)
Compute the resulting wrench.
|
Wrench |
computeWrench(SpacecraftState s)
Compute the resulting wrench at the mass centre of the spacecraft in the frame of the main part.
|
Wrench |
computeWrench(SpacecraftState s,
Vector3D origin,
Frame frame)
Compute the resulting wrench.
|
public GravitationalAttractionWrench(IInertiaModel spacecraft, double mu)
spacecraft
- inertia modelmu
- gravitational parameterpublic Wrench computeWrench(SpacecraftState s) throws PatriusException
computeWrench
in interface WrenchModel
s
- spacecraft statePatriusException
- if some error occurspublic Wrench computeWrench(SpacecraftState s, Vector3D origin, Frame frame) throws PatriusException
computeWrench
in interface WrenchModel
s
- spacecraft stateorigin
- point in which to express wrenchframe
- frame in which point is expressedPatriusException
- if some error occurspublic Vector3D computeTorque(SpacecraftState s) throws PatriusException
computeTorque
in interface WrenchModel
s
- spacecraft statePatriusException
- if some error occurspublic Vector3D computeTorque(SpacecraftState s, Vector3D origin, Frame frame) throws PatriusException
computeTorque
in interface WrenchModel
s
- spacecraft stateorigin
- point in which to express torqueframe
- frame in which point is expressedPatriusException
- if some error occursCopyright © 2019 CNES. All rights reserved.