Class LongitudeValueCrossingFunction

java.lang.Object
org.orekit.propagation.events.functions.AbstractGeodeticEventFunction
org.orekit.propagation.events.functions.LongitudeValueCrossingFunction
All Implemented Interfaces:
EventFunction

public class LongitudeValueCrossingFunction extends AbstractGeodeticEventFunction
Class for longitude value-crossing event function. It is negative under the critical value. It is also centered around it and bounded.
Since:
14.0
Author:
Romain Serra
  • Constructor Details

    • LongitudeValueCrossingFunction

      public LongitudeValueCrossingFunction(BodyShape body, double criticalLongitude)
      Constructor.
      Parameters:
      body - body
      criticalLongitude - longitude for crossing
  • Method Details

    • 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
    • getCriticalLongitude

      public double getCriticalLongitude()
      Getter for critical longitude.
      Returns:
      longitude