Boost 库

[toc]

What's boost?

Boost 是为 C++ 语言标准库提供扩展的一些 C++ 程序库的总称。Boost 库是一个可移植、提供源代码的 C++ 库,作为标准库的后备,是 C++ 标准化进程的开发引擎之一,是为 C++ 语言标准库提供扩展的一些 C++ 程序库的总称。

Boost 由于其对跨平台的强调,对标准 C++ 的强调,与编写平台无关。但 Boost 中也有很多是实验性质的东西,在实际的开发中使用需要谨慎

The Boost license encourages both commercial and non-commercial use.

Boost.Geometry

Boost.Geometry (aka Generic Geometry Library, GGL), part of collection of the Boost C++ Libraries, defines concepts, primitives and algorithms for solving geometry problems. / Boost.Geometry 用于解决几何问题的概念、原语和算法。

Functions

Geometry

Reference

buffer

Calculates the buffer (a polygon being the spatial point set collection within a specified maximum distance from a geometry) of a geometry. / 通俗点,在原有形状的外围加上指定距离的边界,形成新的几何形状。

一图胜千言

difference

Calculates the spatial set theoretic difference of two geometries. / 计算两个图形的差异。

simplify

Simplify a geometry. / 简化一个几何图形,比如减少曲线的端点数。

Others

1
2
3
4
5
dpkg -S /usr/include/boost/version.hpp

// or

vim /usr/include/boost/version.hpp // without dpkg

复习: Run "dpkg --help" in Linux, 可以查看 "-S|--search Find package(s) owning file(s)".