4 #include "earthmodel.hh" 19 theta = latitude * RADDEG;
21 phi=EarthModel::LongtoPhi_0isPrimeMeridian(longitude);
23 location = location.RotateY(theta);
24 location = location.RotateZ(phi);
25 location = altitude * location;
38 return sqrt((x - second.x)*(x-second.x)
39 + (y - second.y)*(y-second.y)
40 + (z - second.z)*(z-second.z));
44 return this->Angle(second) * local_surface;
48 return Theta()*DEGRAD;
52 double phi_deg = Phi()*DEGRAD;
55 phi_deg = phi_deg-360.;
57 return (270. - phi_deg);
double Distance(const Position &second) const
Returns chord distance (direct distance between two vectors)
double Lat() const
Returns latitude, where the +z direction is at 0 latitude.
This class is a 3-vector that represents a position on the Earth's surface.
double SurfaceDistance(const Position &second, double local_surface) const
Returns "surface distance" between two positions.
This class represents a three-vector. Operators are overloaded to provide for the familiar operations...
Position()
Default constructor: calls default constructor of Vector.
double Lon() const
Returns longitude.