[/============================================================================
Boost.Geometry (aka GGL, Generic Geometry Library)
Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
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)
=============================================================================/]
[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
[/ Generated from doxy/doxygen_output/xml/classboost_1_1geometry_1_1model_1_1point.xml]
[section:model_point model::point]
'''modelpoint'''
Basic point class, having coordinates defined in a neutral way.
[heading Description]
Defines a neutral point class, fulfilling the Point Concept. Library users can use this point class, or use their own point classes. This point class is used in most of the samples and tests of Boost.Geometry This point class is used occasionally within the library, where a temporary point class is necessary.
[heading Model of]
[link geometry.reference.concepts.concept_point Point Concept]
[heading Synopsis]
``template
class model::point
{
// ...
};
``
[heading Template parameter(s)]
[table
[[Parameter] [Description]]
[[typename CoordinateType] [numerical type (int, double, ttmath, ...) ]]
[[std::size_t DimensionCount] [number of coordinates, usually 2 or 3 ]]
[[typename CoordinateSystem] [coordinate system, for example cs::cartesian]]
]
[heading Constructor(s)]
[table
[[Function] [Description] [Parameters] ]
[[``point()``
] [Default constructor, no initialization. ] [
]]
[[``point(CoordinateType const & v0)``
] [Constructor to set one value. ] [[* CoordinateType const &]: ['v0]:
]]
[[``point(CoordinateType const & v0, CoordinateType const & v1)``
] [Constructor to set two values. ] [[* CoordinateType const &]: ['v0]:
[* CoordinateType const &]: ['v1]:
]]
[[``point(CoordinateType const & v0, CoordinateType const & v1, CoordinateType const & v2)``
] [Constructor to set three values. ] [[* CoordinateType const &]: ['v0]:
[* CoordinateType const &]: ['v1]:
[* CoordinateType const &]: ['v2]:
]]
]
[heading Member Function(s)]
[table
[[Function] [Description] [Parameters] [Returns]]
[[``template
CoordinateType const & get()``
] [Get a coordinate. ] [
][
the coordinate
]
]
[[``template
void set(CoordinateType const & value)``
] [Set a coordinate. ] [[* CoordinateType const &]: ['value]: value to set
][
]
]
]
[heading Header]
Either
`#include `
Or
`#include `
[include reference/geometries/point.qbk]
[endsect]