Package org.orekit.time
Class TimeUtils
java.lang.Object
org.orekit.time.TimeUtils
Time-related utilities.
- Since:
- 14.0
- Author:
- Luc Maisonobe
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends TimeStamped>
Searliest(S ts1, S ts2) Get the earliest object from a pair.static <S extends TimeStamped>
Slatest(S ts1, S ts2) Get the earliest object from a pair.
-
Method Details
-
earliest
Get the earliest object from a pair.- Type Parameters:
S- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-
earliest
public static <T extends CalculusFieldElement<T>,S extends FieldTimeStamped<T>> S earliest(S ts1, S ts2) Get the earliest object from a pair.- Type Parameters:
T- type of the field elementsS- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-
latest
Get the earliest object from a pair.- Type Parameters:
S- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-
latest
public static <T extends CalculusFieldElement<T>,S extends FieldTimeStamped<T>> S latest(S ts1, S ts2) Get the earliest object from a pair.- Type Parameters:
T- type of the field elementsS- type of the time stamped objects- Parameters:
ts1- first objectts2- second object- Returns:
- the earliest occurring object among #@code ts1} and
ts2
-