mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-13 12:32:09 +00:00
Spherical coordinate systems: splitted into "polar" and "equatorial" with opposite (co)latitude
[SVN r72233]
This commit is contained in:
@@ -27,8 +27,8 @@ int main()
|
||||
double area = bg::area(poly);
|
||||
std::cout << "Area: " << area << std::endl;
|
||||
|
||||
// Calculate the area of a spherical polygon
|
||||
bg::model::polygon<bg::model::point<float, 2, bg::cs::spherical<bg::degree> > > sph_poly;
|
||||
// Calculate the area of a spherical equatorial polygon
|
||||
bg::model::polygon<bg::model::point<float, 2, bg::cs::spherical_equatorial<bg::degree> > > sph_poly;
|
||||
bg::read_wkt("POLYGON((0 0,0 45,45 0,0 0))", sph_poly);
|
||||
area = bg::area(sph_poly);
|
||||
std::cout << "Area: " << area << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user