|
BIMHome v1.0.0
BIMHome接口文档说明
|
#include <cmath>#include <cfloat>#include <stdexcept>类 | |
| struct | float_traits< numT > |
| 提供浮点数类型的特性 更多... | |
| struct | float_traits< double > |
| 提供 double 类型的特性 更多... | |
| struct | float_traits< float > |
| 提供 float 类型的特性 更多... | |
| class | Vector3< _Precision > |
| Vector3 类,表示三维空间中的向量 更多... | |
命名空间 | |
| namespace | Base |
宏定义 | |
| #define | D_PI 3.141592653589793 |
| #define | DOUBLE_MAX 1.7976931348623157E+308 |
| #define | DOUBLE_MIN 2.2250738585072014E-308 |
| #define | F_PI 3.1415926f |
| #define | FLOAT_MAX 3.402823466E+38F |
| #define | FLOAT_MIN 1.175494351E-38F |
类型定义 | |
| typedef Vector3< double > | Vector3d |
| 定义一个基于 double 的三维向量类型 | |
| typedef Vector3< float > | Vector3f |
| 定义一个基于 float 的三维向量类型 | |
函数 | |
| template<class _Precision > | |
| _Precision | Distance (const Vector3< _Precision > &v1, const Vector3< _Precision > &v2) |
| 计算三维空间中两个点之间的欧几里得距离 | |
| template<class _Precision > | |
| _Precision | DistanceP2 (const Vector3< _Precision > &v1, const Vector3< _Precision > &v2) |
| 计算两个向量之间的欧几里得距离的平方 | |
| template<class _Precision > | |
| Vector3< _Precision > | operator* (_Precision fFac, const Vector3< _Precision > &rcVct) |
| 实现标量与向量的乘法 | |
| template<class _Pr1 , class _Pr2 > | |
| Vector3< _Pr1 > | toVector (const Vector3< _Pr2 > &v) |
| 将一个类型为 _Pr2 的 Vector3 对象转换为另一个类型为 _Pr1 的 Vector3 对象 | |