50 : m_latitude(latitude), m_longitude(longitude)
70 m_latitude = other.m_latitude;
71 m_longitude = other.m_longitude;
81 m_latitude = other.m_latitude;
82 m_longitude = other.m_longitude;
111 return CValueDistance(m_CalcDirectDistance(other), CValueDistance::M);
122 const double er = 6378136.0;
215 return CStr::Fmt(_T(
"%d度%d分%.3f秒"), dd, mm, ss);
226 static void Resolution(
int& _dd,
int& _mm,
double& _ss,
double deg)
234 _dd =
static_cast<int>(deg / 60.0 / 60.0);
235 _mm = int(deg / 60.0) % 60;
236 _ss = deg - ((_dd * 60) + _mm) * 60;
249 const double er = 6378136.0;
250 const double ecc = 0.006694470;
263 return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) + (z1 - z2) * (z1 - z2));
268 friend class CEarthCoordinatesTest;
CValueDistance CalcEarthSurfaceDistance(const CEarthCoordinates &other) const
[計算] 地表面距離.
const CValueDegree & GetLatitude(void) const
[取得] 緯度
CEarthCoordinates(const CEarthCoordinates &other)
コピーコンストラクタ.
const CValueDegree & GetLongitude(void) const
[取得] 経度
CStr LatitudeToString(void) const
[変換] 緯度文字列化
CEarthCoordinates(void)
コンストラクタ
static CStr SecondToString(double deg)
[変換] 角度(秒)文字列化
CEarthCoordinates Move(const CValueDegree &de, const CValueDistance &di) const
[計算] 座標移動.
static void Resolution(int &_dd, int &_mm, double &_ss, double deg)
[変換] 角度分解.
CValueDistance CalcDirectDistance(const CEarthCoordinates &other) const
[計算] 直距離.
CEarthCoordinates(double latitude, double longitude)
代入コンストラクタ.
CStr LongitudeToString(void) const
[変換] 経度文字列化
CEarthCoordinates & operator=(const CEarthCoordinates &other)
コピーオペレータ.
CStr ToString(void) const
[変換] 文字列化
CEarthCoordinates(const CValueDegree &latitude, const CValueDegree &longitude)
代入コンストラクタ.
CValueDegree CalcAzimuthal(const CEarthCoordinates &other) const
[計算] 方位角計算.
double ToDouble(void) const
[取得] double型取得.
static CStrT Fmt(const TCHAR *lpszFormat,...)
[作成] 書式付き文字列作成
CRealNumber GetValue(void) const
[取得] 値取得.
CValueUnitT< CUnitDistance > CValueDistance
距離管理クラス
CRealNumber sin(const CValueDegree &d)
[計算] sin (値 = sin(角度))
CValueDistance sqrt(const CValueArea &a)
[計算] 平方根 (距離 = √面積)
CRealNumber cos(const CValueDegree &d)
[計算] cos (値 = cos(角度))
CValueUnitT< CUnitDegree > CValueDegree
角度管理クラス