Package org.orekit.utils
Interface ExtendedStateScalarFunction
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExtendedStateScalarFunction
Interface representing a scalar function depending only onSpacecraftStateor its field counterpart.- Since:
- 14.0
- Author:
- Romain Serra
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ExtendedStateScalarFunctionof(ToDoubleFunction<SpacecraftState> function)Create instance from pure double function.default <T extends CalculusFieldElement<T>>
Tvalue(FieldSpacecraftState<T> fieldState)Evaluate the Field function.doublevalue(SpacecraftState state)Evaluate the function.
-
-
-
Method Detail
-
value
double value(SpacecraftState state)
Evaluate the function.- Parameters:
state- spacecraft state as the sole free parameter of the function.- Returns:
- scalar value of the function
-
value
default <T extends CalculusFieldElement<T>> T value(FieldSpacecraftState<T> fieldState)
Evaluate the Field function.- Type Parameters:
T- field type- Parameters:
fieldState- spacecraft state as the sole free parameter of the function.- Returns:
- scalar value of the function
-
of
static ExtendedStateScalarFunction of(ToDoubleFunction<SpacecraftState> function)
Create instance from pure double function.- Parameters:
function- function of double- Returns:
- extended function
-
-