57 return !(*
this == rhs);
double altitude
经度,初始化为0.0。
MSGPACK_DEFINE_ARRAY(latitude, longitude, altitude)
不等于运算符:如果两个 GeoLocation 对象的纬度、经度或海拔不相等,则返回 true。
GeoLocation Transform(const Location &location) const
使用此对象作为地理参考,将给定的 location 转换为 GeoLocation。
GeoLocation(double latitude, double longitude, double altitude)
double latitude
定义 GeoLocation 类,它是一个公开的成员。
bool operator!=(const GeoLocation &rhs) const
等于运算符:如果两个 GeoLocation 对象的纬度、经度和海拔都相等,则返回 true。
GeoLocation()=default
海拔,初始化为0.0。
bool operator==(const GeoLocation &rhs) const
double longitude
纬度,初始化为0.0。