Package edu.sc.seis.TauP
Class TimeDist
java.lang.Object
edu.sc.seis.TauP.TimeDist
- All Implemented Interfaces:
Cloneable
Holds the ray parameter, time and distance increments, and optionally a
depth, for a ray passing through some layer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleandoublegetDepth()doubledoubledoublegetP()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.negateDistance(List<TimeDist> pierce) toString()
-
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
-
negateDistance
-
negateDistance
-
toString
-
getP
public double getP() -
getDepth
public double getDepth() -
getTime
public double getTime() -
getDistRadian
public double getDistRadian() -
getDistDeg
public double getDistDeg() -
linearInterpOnDepth
Linearly interpolates two TimeDist objects using depth as the interpolation variable.- Parameters:
tdA-tdB-depth-- Returns:
-
linearInterpOnTime
Linearly interpolates two TimeDist objects using time as the interpolation variable.- Parameters:
tdA- first TimeDisttdB- second TimeDisttime- interp time- Returns:
-
clone
-
equals
-
hashCode
public int hashCode()
-