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
public abstract class AbstractEncounterLOF extends Object implements EncounterLOF
Abstract class for encounter frame between two objects.- Since:
- 12.0
- Author:
- Vincent Cucchietti
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEncounterLOF(FieldPVCoordinates<T> other)
Constructor withFieldPVCoordinates
.protected
AbstractEncounterLOF(PVCoordinates other)
Constructor withPVCoordinates
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends CalculusFieldElement<T>>
FieldPVCoordinates<T>getFieldOther(Field<T> field)
Get the field version of other's position and velocity coordinates.PVCoordinates
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.Rotation
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, wait
-
Methods inherited from interface org.orekit.frames.encounter.EncounterLOF
computeProjectionMatrix, computeProjectionMatrix, getAxisNormalToCollisionPlane, getAxisNormalToCollisionPlane, isQuasiInertial, projectOntoCollisionPlane, projectOntoCollisionPlane, projectOntoCollisionPlane, projectOntoCollisionPlane, rotationFromInertial, rotationFromInertial, rotationFromInertial, rotationFromInertial
-
Methods inherited from interface org.orekit.frames.LOF
getName, rotationFromLOF, rotationFromLOF, transformFromInertial, transformFromInertial, transformFromLOF, transformFromLOF
-
-
-
-
Constructor Detail
-
AbstractEncounterLOF
protected AbstractEncounterLOF(PVCoordinates other)
Constructor withPVCoordinates
.- Parameters:
other
- other object to create the encounter local orbital frame with (not the origin of the frame !)
-
AbstractEncounterLOF
protected AbstractEncounterLOF(FieldPVCoordinates<T> other)
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 Detail
-
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:
rotationFromInertial
in 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
public Rotation rotationFromInertial(PVCoordinates 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:
rotationFromInertial
in interfaceEncounterLOF
- Parameters:
origin
- position-velocity of the origin in some inertial frame- Returns:
- rotation from inertial to this encounter local orbital frame
-
getFieldOther
public <T extends CalculusFieldElement<T>> FieldPVCoordinates<T> getFieldOther(Field<T> field)
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:
getFieldOther
in 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
public PVCoordinates 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 itsPVCoordinates
equivalent.- Specified by:
getOther
in interfaceEncounterLOF
- Returns:
- normal version of other's position and velocity coordinates
-
-