geometry
Class EarthLocalCoordinate

java.lang.Object
  extended by geometry.Coordinate
      extended by geometry.EarthLocalCoordinate
Direct Known Subclasses:
IceCubeCoordinate

public class EarthLocalCoordinate
extends Coordinate

This class defines local coordinates in/on the earth. Its z axis always points to direction from the earth center to the origin.


Constructor Summary
EarthLocalCoordinate(double height, double longitude, double latitude, double alpha)
          Constructor.
EarthLocalCoordinate(J3Vector origin)
          Constructor.
EarthLocalCoordinate(J3Vector origin, double alpha)
          Constructor.
 
Method Summary
 J3UnitVector transformUnitVectorToEarthCenter(J3UnitVector n_local)
          Transform unit vector (direction) J3UnitVector n represented in this coordinate system to the one in EarthCenterCoordinate.
 J3Vector transformVectorToEarthCenter(J3Vector r_local)
          Transform vector represented in this coordinate to EarthCenterCoordinate.
 
Methods inherited from class geometry.Coordinate
getAzimuthInPolar, getEx, getEy, getEz, getLengthInPolar, getOrigin, getPointVectorFromPolarCoordinate, getZenithInPolar, rotate, setOrigin, transformThisCoordinate, transformUnitVectorToThisCoordinate, transformVectorToThisCoordinate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EarthLocalCoordinate

public EarthLocalCoordinate(J3Vector origin,
                            double alpha)
Constructor. Rotation angle in x'-y' plane should be given to define those axises directions.
        J3Vector origin :  Origin location vector. Should be represented in
                           EarthCenterCoordinate system.
        double alpha    :  the final rotation angle [rad] to determine
                           the x and y axis directions. 0 correponds to
                           y axis pointing to local south, Math.PI to
                           y axis poing to local north.
        


EarthLocalCoordinate

public EarthLocalCoordinate(J3Vector origin)
Constructor.
        J3Vector origin :  Origin location vector. Should be represented in
                           EarthCenterCoordinate system.
        
Y axis points to local south


EarthLocalCoordinate

public EarthLocalCoordinate(double height,
                            double longitude,
                            double latitude,
                            double alpha)
Constructor. Origin location described by longitude, latitude, hight from the earth center.
        double height :  height [cm] from the earth center
        double longitude : longitude [deg]
        double latitude :  latitude [deg]
        double alpha    :  the final rotation angle [rad] to determine
                           the x and y axis directions. 0 correponds to
                           y axis pointing to local south, Math.PI to
                           y axis pointing to local north.
        

Method Detail

transformVectorToEarthCenter

public J3Vector transformVectorToEarthCenter(J3Vector r_local)
Transform vector represented in this coordinate to EarthCenterCoordinate. Returns the transformed vector.


transformUnitVectorToEarthCenter

public J3UnitVector transformUnitVectorToEarthCenter(J3UnitVector n_local)
Transform unit vector (direction) J3UnitVector n represented in this coordinate system to the one in EarthCenterCoordinate. Returns the transformed vector.