/Src/Dependencies/Boost/libs/geometry/doc/src/examples/core/coordinate_system.cpp
http://hadesmem.googlecode.com/ · C++ · 42 lines · 13 code · 12 blank · 17 comment · 0 complexity · 2f7eb8e480fbff9ed3631310df5a3f8b MD5 · raw file
- // Boost.Geometry (aka GGL, Generic Geometry Library)
- // QuickBook Example
- // Copyright (c) 2011 Barend Gehrels, Amsterdam, the Netherlands.
- // Use, modification and distribution is subject to the Boost Software License,
- // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
- // http://www.boost.org/LICENSE_1_0.txt)
- //[coordinate_system
- //` Examine the coordinate system of a point
- #include <iostream>
- #include <typeinfo>
- #include <boost/geometry.hpp>
- #include <boost/geometry/geometries/polygon.hpp>
- #include <boost/geometry/geometries/point_xy.hpp>
- int main()
- {
- typedef boost::geometry::model::d2::point_xy<double> point_type;
- typedef boost::geometry::model::polygon<point_type> polygon_type;
- typedef boost::geometry::coordinate_system<polygon_type>::type system;
-
- std::cout << "system: " << typeid(system).name() << std::endl;
- return 0;
- }
- //]
- //[coordinate_system_output
- /*`
- Output (using MSVC):
- [pre
- system: struct boost::geometry::cs::cartesian
- ]
- */
- //]