Class ElevationValueCrossingFunction

    • Constructor Detail

      • ElevationValueCrossingFunction

        public ElevationValueCrossingFunction​(AtmosphericRefractionModel refractionModel,
                                              TopocentricFrame topo,
                                              double criticalElevation)
        Constructor.
        Parameters:
        refractionModel - reference to refraction model (can be null in which case no correction is applied)
        topo - reference to a topocentric model
        criticalElevation - elevation defining function's root
    • Method Detail

      • getCriticalElevation

        public double getCriticalElevation()
        Getter for the minimum elevation.
        Returns:
        min. elevation
      • value

        public double value​(SpacecraftState state)
        Description copied from interface: EventFunction
        Evaluate function.
        Parameters:
        state - spacecraft state
        Returns:
        value
      • value

        public <T extends CalculusFieldElement<T>> T value​(FieldSpacecraftState<T> fieldState)
        Description copied from interface: EventFunction
        Evaluate Field function. By default, calls the non-Field version. This is suitable for detection but not be for applications like automatic differentiation, where a proper implementation should be used instead.
        Type Parameters:
        T - field type
        Parameters:
        fieldState - spacecraft state
        Returns:
        value