点(Point)
- 单个点(Point)
点是几何要素中最基本的要素。Boost.Geometry中点的设计考虑到三个概念: 坐标数据类型、坐标维度和坐标系
template<
typename CoordinateType,
std::size_t DimensionCount,
typename CoordinateSystem
>
class point{
};
template<
typename CoordinateType,
typename CoordinateSystem = cs::cartesian
>
class point_xy : public model::point<CoordinateType, 2, CoordinateSystem>
{
};
template<
typename CoordinateType,
typename CoordinateSystem = cs::cartesian
>
class point_xyz : public model::point<CoordinateType, 3, CoordinateSystem>
{
};
- 点集合(MultiPoint)
存储多个点的容器,具体使用的哪一个容器可以通过模板参数中的Container 来指定,默认是std::vector,可以是std的容器,也可以是Boost的另外提供的容器