Spherical coordinate systems: splitted into "polar" and "equatorial" with opposite (co)latitude

[SVN r72233]
This commit is contained in:
Barend Gehrels
2011-05-27 22:01:05 +00:00
parent 80458f256d
commit 5eb0739f08
39 changed files with 411 additions and 167 deletions

View File

@@ -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;