| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSci.maths.AbstractMath
JSci.maths.CoordinateMath
The coordinate transformation math library. 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)
public static double[] polarToCartesian(double r,
                                        double theta)
public static double[] cartesianToSpherical(double x,
                                            double y,
                                            double z)
public static double[] sphericalToCartesian(double r,
                                            double theta,
                                            double phi)
public static double[] cartesianToCylindrical(double x,
                                              double y,
                                              double z)
public static double[] cylindricalToCartesian(double r,
                                              double phi,
                                              double h)
public static double[] cylindricalToSpherical(double r,
                                              double phi,
                                              double h)
public static double[] sphericalToCylindrical(double r,
                                              double theta,
                                              double phi)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||