Class TimeDist

java.lang.Object
edu.sc.seis.TauP.TimeDist
All Implemented Interfaces:
Cloneable

public class TimeDist extends Object implements Cloneable
Holds the ray parameter, time and distance increments, and optionally a depth, for a ray passing through some layer.
  • Constructor Details

    • TimeDist

      public TimeDist()
    • TimeDist

      public TimeDist(double p)
    • TimeDist

      public TimeDist(double p, double time, double dist)
    • TimeDist

      public TimeDist(double p, double time, double dist, double depth)
  • Method Details

    • add

      public TimeDist add(TimeDist td)
    • negateDistance

      public TimeDist negateDistance()
    • negateDistance

      public static List<TimeDist> negateDistance(List<TimeDist> pierce)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getP

      public double getP()
    • getDepth

      public double getDepth()
    • getTime

      public double getTime()
    • getDistRadian

      public double getDistRadian()
    • getDistDeg

      public double getDistDeg()
    • linearInterpOnDepth

      public static TimeDist linearInterpOnDepth(TimeDist tdA, TimeDist tdB, double depth)
      Linearly interpolates two TimeDist objects using depth as the interpolation variable.
      Parameters:
      tdA -
      tdB -
      depth -
      Returns:
    • linearInterpOnTime

      public static TimeDist linearInterpOnTime(TimeDist tdA, TimeDist tdB, double time)
      Linearly interpolates two TimeDist objects using time as the interpolation variable.
      Parameters:
      tdA - first TimeDist
      tdB - second TimeDist
      time - interp time
      Returns:
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object