| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgeometry.Coordinate
public class Coordinate
This base class defines universal coordinates. The right-handed system is setup.
| Constructor Summary | |
|---|---|
Coordinate()
Constructor.  | 
|
Coordinate(J3Vector origin)
Constructor.  | 
|
Coordinate(J3Vector origin,
           J3UnitVector ex,
           J3UnitVector ez)
Constructor.  | 
|
| Method Summary | |
|---|---|
 double | 
getAzimuthInPolar(J3Vector a)
Convert Cartesian to Poler coordinate system.  | 
 J3Vector | 
getEx()
Get x axis direction.  | 
 J3Vector | 
getEy()
Get y axis direction.  | 
 J3Vector | 
getEz()
Get z axis direction.  | 
 double | 
getLengthInPolar(J3Vector a)
Convert Cartesian to Poler coordinate system.  | 
 J3Vector | 
getOrigin()
Get the origin of the coordinate system.  | 
 J3Vector | 
getPointVectorFromPolarCoordinate(double r,
                                  double theta,
                                  double phi)
get a point vector for a given Poler system.  | 
 double | 
getZenithInPolar(J3Vector a)
Convert Cartesian to Poler coordinate system.  | 
 void | 
rotate(int axis,
       double theta)
Rotate the coordinate system.  | 
 void | 
setOrigin(J3Vector origin)
Set the origin of the coordinate system.  | 
 void | 
transformThisCoordinate(J3UnitVector nz,
                        double alpha)
transform this coordiante to one with the external z-axis vector nz.  | 
 J3UnitVector | 
transformUnitVectorToThisCoordinate(J3UnitVector n)
Transform unit vector (direction) J3UnitVector n represented in the different coordinate system to the one in this coordinate.  | 
 J3Vector | 
transformVectorToThisCoordinate(J3Vector r,
                                Coordinate external)
Transform vector point J3Vector r represented in the external coordinate system to the one in this coordinate.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Coordinate()
public Coordinate(J3Vector origin)
public Coordinate(J3Vector origin,
                  J3UnitVector ex,
                  J3UnitVector ez)
| Method Detail | 
|---|
public double getLengthInPolar(J3Vector a)
public double getZenithInPolar(J3Vector a)
public double getAzimuthInPolar(J3Vector a)
public J3Vector getPointVectorFromPolarCoordinate(double r,
                                                  double theta,
                                                  double phi)
public void rotate(int axis,
                   double theta)
        Rotation angle "theta" sign + for clockwise
                                    - for anti-clockwise
        
public void transformThisCoordinate(J3UnitVector nz,
                                    double alpha)
        J3UnitVector nz    :  new z-axis direction. This vector has to be
                              described by unit base vectors of THIS coordinate
                              before applying this transformation.
        double alpha       :  the final rotation angle [rad] to determine
                              the x and y axis directions.
        
public void setOrigin(J3Vector origin)
public J3Vector getEx()
public J3Vector getEy()
public J3Vector getEz()
public J3Vector getOrigin()
public J3Vector transformVectorToThisCoordinate(J3Vector r,
                                                Coordinate external)
        J3Vector r :    point vector that will be transfomed to this corrdinate.
        Coordinate external: the cordinate system that describes the vector r.
        
public J3UnitVector transformUnitVectorToThisCoordinate(J3UnitVector n)
        J3UnitVector n :  direction vector that will be transfomed 
                          to this corrdinate.
        
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||