Package edu.sc.seis.TauP
Class Vector
- java.lang.Object
-
- edu.sc.seis.TauP.Vector
-
public class Vector extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Vector(double x, double y, double z)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VectorcrossProduct(Vector a, Vector b)static doubledotProduct(Vector a, Vector b)doublemagnitude()Vectorminus(Vector b)Vectornegate()Vectornormalize()Vectorplus(Vector b)SphericalCoordinatetoSpherical()java.lang.StringtoString()
-
-
-
Method Detail
-
toSpherical
public SphericalCoordinate toSpherical()
-
magnitude
public double magnitude()
-
normalize
public Vector normalize()
-
negate
public Vector negate()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-