Package org.orekit.frames.encounter
Class AbstractEncounterLOF
java.lang.Object
org.orekit.frames.encounter.AbstractEncounterLOF
- All Implemented Interfaces:
EncounterLOF,LOF
- Direct Known Subclasses:
DefaultEncounterLOF,ValsecchiEncounterFrame
Abstract class for encounter frame between two objects.
- Since:
- 12.0
- Author:
- Vincent Cucchietti
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEncounterLOF(FieldPVCoordinates<T> other) Constructor withFieldPVCoordinates.protectedConstructor withPVCoordinates. -
Method Summary
Modifier and TypeMethodDescription<T extends CalculusFieldElement<T>>
FieldPVCoordinates<T> getFieldOther(Field<T> field) Get the field version of other's position and velocity coordinates.getOther()Get the normal version of other's position and velocity coordinates.<T extends CalculusFieldElement<T>>
FieldRotation<T> rotationFromInertial(Field<T> field, FieldPVCoordinates<T> origin) Get the rotation from inertial to this encounter local orbital frame.rotationFromInertial(PVCoordinates origin) Get the rotation from inertial to this encounter local orbital frame.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.frames.encounter.EncounterLOF
computeProjectionMatrix, computeProjectionMatrix, getAxisNormalToCollisionPlane, getAxisNormalToCollisionPlane, isQuasiInertial, projectOntoCollisionPlane, projectOntoCollisionPlane, projectOntoCollisionPlane, projectOntoCollisionPlane, rotationFromInertial, rotationFromInertial, rotationFromInertial, rotationFromInertialMethods inherited from interface org.orekit.frames.LOF
getName, rotationFromLOF, rotationFromLOF, rotationToInertial, rotationToInertial, transformFromInertial, transformFromInertial, transformFromLOF, transformFromLOF, transformToInertial, transformToInertial
-
Constructor Details
-
AbstractEncounterLOF
Constructor withPVCoordinates.- Parameters:
other- other object to create the encounter local orbital frame with (not the origin of the frame !)
-
AbstractEncounterLOF
Constructor withFieldPVCoordinates.- Type Parameters:
T- type of the field elements- Parameters:
other- other object to create the encounter frame with (not the origin of the frame !)
-
-
Method Details
-
rotationFromInertial
public <T extends CalculusFieldElement<T>> FieldRotation<T> rotationFromInertial(Field<T> field, FieldPVCoordinates<T> origin) Get the rotation from inertial to this encounter local orbital frame.BEWARE: The given origin's position and velocity coordinates must be given in the frame in which this instance has been expressed in.
- Specified by:
rotationFromInertialin interfaceEncounterLOF- Type Parameters:
T- type of the field elements- Parameters:
field- field to which the elements belongorigin- position-velocity of the origin in the same inertial frame as the one this instance has been expressed in.- Returns:
- rotation from inertial to this encounter local orbital frame
-
rotationFromInertial
Get the rotation from inertial to this encounter local orbital frame.BEWARE: The given origin's position and velocity coordinates must be given in the frame in which this instance has been expressed in.
- Specified by:
rotationFromInertialin interfaceEncounterLOF- Parameters:
origin- position-velocity of the origin in some inertial frame- Returns:
- rotation from inertial to this encounter local orbital frame
-
getFieldOther
Get the field version of other's position and velocity coordinates. If the instance has been created with normalPVCoordinates, then it will build its field equivalent.- Specified by:
getFieldOtherin interfaceEncounterLOF- Type Parameters:
T- type of the field elements- Parameters:
field- field of the elements- Returns:
- field version of other's position and velocity coordinates
-
getOther
Get the normal version of other's position and velocity coordinates. If the instance has been created with fieldFieldPVCoordinates, then it will convert it to itsPVCoordinatesequivalent.- Specified by:
getOtherin interfaceEncounterLOF- Returns:
- normal version of other's position and velocity coordinates
-