Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
17
libs/geometry/area_on_earth.hpp
Normal file
17
libs/geometry/area_on_earth.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include "geometry/latlon.hpp"
|
||||
|
||||
namespace ms
|
||||
{
|
||||
// Returns area of triangle on earth.
|
||||
double AreaOnEarth(LatLon const & ll1, LatLon const & ll2, LatLon const & ll3);
|
||||
|
||||
// Area of the spherical cap that contains all points
|
||||
// within the distance |radius| from an arbitrary fixed point, measured
|
||||
// along the Earth surface.
|
||||
// In particular, the smallest cap spanning the whole Earth results
|
||||
// from radius = pi*EarthRadius.
|
||||
// For small enough radiuses, returns the value close to pi*|radius|^2.
|
||||
double CircleAreaOnEarth(double radius);
|
||||
} // namespace ms
|
||||
Loading…
Add table
Add a link
Reference in a new issue