添加了测量界面,并完成功能
This commit is contained in:
@@ -207,6 +207,7 @@ void PureProjection::FromCartesianTGeodetic(const double &X, const double &Y, co
|
||||
}
|
||||
double PureProjection::courseBetweenLatLng(PointLatLng const & p1, PointLatLng const & p2)
|
||||
{
|
||||
|
||||
double lon1 = p1.Lng() * (M_PI / 180);
|
||||
double lat1 = p1.Lat() * (M_PI / 180);
|
||||
double lon2 = p2.Lng() * (M_PI / 180);
|
||||
@@ -230,6 +231,7 @@ double PureProjection::DistanceBetweenLatLng(PointLatLng const & p1, PointLatLng
|
||||
double d = R * c;
|
||||
|
||||
return d;
|
||||
|
||||
}
|
||||
|
||||
void PureProjection::offSetFromLatLngs(PointLatLng p1, PointLatLng p2, double &distance, double &bearing)
|
||||
|
||||
Reference in New Issue
Block a user