#include <VelocityModel.h>
Static Public Member Functions | |
| static double | timeP (double distance) |
| static double | timeS (double distance) |
| double VelocityModel::timeP | ( | double | distance | ) | [static] |
Returns the P travel time from distance in km.
{
int d=round(distance);
if(d>=1 && d<=20000) {
return P_time[d-1];
} else {
return 0.0;
}
}
| double VelocityModel::timeS | ( | double | distance | ) | [static] |
Returns the S travel time from distance in km.
{
int d=round(distance);
if(d>=1 && d<=20000) {
return S_time[d-1];
} else {
return 0.0;
}
}