Package edu.sc.seis.TauP
Class TimeDist
- java.lang.Object
-
- edu.sc.seis.TauP.TimeDist
-
- All Implemented Interfaces:
java.lang.Cloneable
public class TimeDist extends java.lang.Object implements java.lang.CloneableHolds the ray parameter, time and distance increments, and optionally a depth, for a ray passing through some layer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeDistadd(TimeDist td)java.lang.Objectclone()booleanequals(java.lang.Object o)doublegetDepth()doublegetDistDeg()doublegetDistRadian()doublegetP()doublegetTime()inthashCode()static TimeDistlinearInterpOnDepth(TimeDist tdA, TimeDist tdB, double depth)Linearly interpolates two TimeDist objects using depth as the interpolation variable.static TimeDistlinearInterpOnTime(TimeDist tdA, TimeDist tdB, double time)Linearly interpolates two TimeDist objects using time as the interpolation variable.TimeDistnegateDistance()static java.util.List<TimeDist>negateDistance(java.util.List<TimeDist> pierce)java.lang.StringtoString()
-
-
-
Method Detail
-
negateDistance
public TimeDist negateDistance()
-
negateDistance
public static java.util.List<TimeDist> negateDistance(java.util.List<TimeDist> pierce)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.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 TimeDisttdB- second TimeDisttime- interp time- Returns:
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-