JSci.maths
Class CoordinateMath
java.lang.Object
JSci.maths.AbstractMath
JSci.maths.CoordinateMath
public final class CoordinateMath
- extends AbstractMath
The coordinate transformation math library.
Provides common coordinate tranformations.
This class cannot be subclassed or instantiated because all methods are static.
- Version:
- 1.1
- Author:
- Mark Hale
Method Summary |
static double[] |
cartesianToCylindrical(double x,
double y,
double z)
|
static double[] |
cartesianToPolar(double x,
double y)
|
static double[] |
cartesianToSpherical(double x,
double y,
double z)
|
static double[] |
cylindricalToCartesian(double r,
double phi,
double h)
|
static double[] |
cylindricalToSpherical(double r,
double phi,
double h)
|
static double[] |
polarToCartesian(double r,
double theta)
|
static double[] |
sphericalToCartesian(double r,
double theta,
double phi)
|
static double[] |
sphericalToCylindrical(double r,
double theta,
double phi)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cartesianToPolar
public static double[] cartesianToPolar(double x,
double y)
polarToCartesian
public static double[] polarToCartesian(double r,
double theta)
cartesianToSpherical
public static double[] cartesianToSpherical(double x,
double y,
double z)
sphericalToCartesian
public static double[] sphericalToCartesian(double r,
double theta,
double phi)
cartesianToCylindrical
public static double[] cartesianToCylindrical(double x,
double y,
double z)
cylindricalToCartesian
public static double[] cylindricalToCartesian(double r,
double phi,
double h)
cylindricalToSpherical
public static double[] cylindricalToSpherical(double r,
double phi,
double h)
sphericalToCylindrical
public static double[] sphericalToCylindrical(double r,
double theta,
double phi)