|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.geometry.CoordinatesUtils
public final class CoordinatesUtils
The coordinate transformation math library. This class is duplicate with the rest of this package. It is useful for a quick conversion without the full burden from AbstractPoint allocation. Provides common coordinate tranformations. This class cannot be subclassed or instantiated because all methods are static.
| Method Summary | |
|---|---|
static double[] |
cartesianToCylindrical(double x,
double y,
double z)
Converts 3D cartesian coordinates to cylindrical coordinates. |
static double[] |
cartesianToPolar(double x,
double y)
Converts cartesian coordinates to polar coordinates. |
static double[] |
cartesianToSpherical(double x,
double y,
double z)
Converts 3D cartesian coordinates to spherical polar coordinates. |
static double[] |
cylindricalToCartesian(double r,
double phi,
double h)
Converts cylindrical coordinates to cartesian coordinates. |
static double[] |
cylindricalToSpherical(double r,
double phi,
double h)
Converts cylindrical coordinates to spherical polar coordinates. |
static double[] |
polarToCartesian(double r,
double theta)
Converts polar coordinates to cartesian coordinates. |
static double[] |
sphericalToCartesian(double r,
double theta,
double phi)
Converts spherical polar coordinates to 3D cartesian coordinates. |
static double[] |
sphericalToCylindrical(double r,
double theta,
double phi)
Converts spherical coordinates to cylindrical coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double[] cartesianToPolar(double x,
double y)
x - DOCUMENT ME!y - DOCUMENT ME!
public static double[] polarToCartesian(double r,
double theta)
r - DOCUMENT ME!theta - DOCUMENT ME!
public static double[] cartesianToSpherical(double x,
double y,
double z)
x - DOCUMENT ME!y - DOCUMENT ME!z - DOCUMENT ME!
public static double[] sphericalToCartesian(double r,
double theta,
double phi)
r - DOCUMENT ME!theta - DOCUMENT ME!phi - DOCUMENT ME!
public static double[] cartesianToCylindrical(double x,
double y,
double z)
x - DOCUMENT ME!y - DOCUMENT ME!z - DOCUMENT ME!
public static double[] cylindricalToCartesian(double r,
double phi,
double h)
r - DOCUMENT ME!phi - DOCUMENT ME!h - DOCUMENT ME!
public static double[] cylindricalToSpherical(double r,
double phi,
double h)
r - DOCUMENT ME!phi - DOCUMENT ME!h - DOCUMENT ME!
public static double[] sphericalToCylindrical(double r,
double theta,
double phi)
r - DOCUMENT ME!theta - DOCUMENT ME!phi - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||