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 on SpacecraftState or its field counterpart.
Since:
14.0
Author:
Romain Serra
  • Method Details

    • 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

      Create instance from pure double function.
      Parameters:
      function - function of double
      Returns:
      extended function