]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/geometry/test/concepts/point_well_formed_traits.cpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
4 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
5 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
6 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
8 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
9 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
11 // Use, modification and distribution is subject to the Boost Software License,
12 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
13 // http://www.boost.org/LICENSE_1_0.txt)
15 #include <boost/geometry/core/cs.hpp>
17 #include "function_requiring_a_point.hpp"
25 namespace boost
{ namespace geometry
{ namespace traits
{
30 typedef point_tag type
;
34 struct coordinate_type
<point
>
40 struct coordinate_system
<point
>
42 typedef bg::cs::cartesian type
;
46 struct dimension
<point
>
52 struct access
<point
, 0>
54 static float get(point
const& p
)
59 static void set(point
& p
, float value
)
66 struct access
<point
, 1>
68 static float get(point
const& p
)
73 static void set(point
& p
, float value
)
80 }}} // namespace bg::traits
86 test::function_requiring_a_point(p1
, p2
);