Package edu.sc.seis.TauP
Class SphericalCoordinate
- java.lang.Object
-
- edu.sc.seis.TauP.SphericalCoordinate
-
public class SphericalCoordinate extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SphericalCoordinate(double phi, double theta)SphericalCoordinate(double phi, double theta, double r)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double[]crossProduct(double[] a, double[] b)static SphericalCoordinatefromAzTakeoffDegree(double azDeg, double takeoffDeg)static SphericalCoordinatefromCartesian(double[] vector)doublegetAzimuthDegree()doublegetAzimuthRadian()doublegetPhi()doublegetR()doublegetTakeoffAngleDegree()doublegetTheta()static doublephiToTakeoffToDegree(double phi)static doublephiToTakeoffToRadian(double phi)doublestereoR()static doubletakeoffDegreeToPhiRadian(double takeoffDeg)VectortoCartesian()java.lang.StringtoString()
-
-
-
Method Detail
-
fromAzTakeoffDegree
public static SphericalCoordinate fromAzTakeoffDegree(double azDeg, double takeoffDeg)
-
fromCartesian
public static SphericalCoordinate fromCartesian(double[] vector)
-
toCartesian
public Vector toCartesian()
-
getPhi
public double getPhi()
-
getTheta
public double getTheta()
-
getR
public double getR()
-
getAzimuthRadian
public double getAzimuthRadian()
-
getAzimuthDegree
public double getAzimuthDegree()
-
getTakeoffAngleDegree
public double getTakeoffAngleDegree()
-
stereoR
public double stereoR()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
takeoffDegreeToPhiRadian
public static double takeoffDegreeToPhiRadian(double takeoffDeg)
-
phiToTakeoffToRadian
public static double phiToTakeoffToRadian(double phi)
-
phiToTakeoffToDegree
public static double phiToTakeoffToDegree(double phi)
-
crossProduct
public static double[] crossProduct(double[] a, double[] b)
-
-