Class LatitudeValueCrossingEventFunction

  • All Implemented Interfaces:
    EventFunction

    public class LatitudeValueCrossingEventFunction
    extends AbstractGeodeticEventFunction
    Class for geodetic latitude value-crossing event function.
    Since:
    14.0
    Author:
    Romain Serra
    • Constructor Detail

      • LatitudeValueCrossingEventFunction

        public LatitudeValueCrossingEventFunction​(BodyShape body,
                                                  double criticalLatitude)
        Constructor.
        Parameters:
        body - body
        criticalLatitude - latitude for crossing
    • Method Detail

      • 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