包含以下子模块: - VrCommon: 核心接口和数据结构 - VrUtils: 工具类库(JSON、log4cpp、tinyxml2、INI、MD5、CRC) - CloudUtils: 点云工具 - DataUtils: 数据处理工具(CloudMathClac、CoordinateTransform) - CloudView: 点云查看工具 功能说明: - 提供项目通用的基础工具类和实用功能 - 支持 Windows (MSVC/MinGW) 和 Linux (ARM/x86_64) 平台 - 使用 Qt qmake 构建系统 - 所有模块编译为静态库
16 lines
328 B
C++
16 lines
328 B
C++
#include "VrAngleUtils.h"
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
#define PI 3.1415926
|
|
|
|
/// 从角度转换成弧度
|
|
double CVrAngleRadianUtils::AngleToRadian(double angle){
|
|
return angle * PI / 180.f;
|
|
}
|
|
|
|
|
|
/// 从弧度转换成角度
|
|
double CVrAngleRadianUtils::RadianToAngle(double radian){
|
|
return radian * 180.f / PI;
|
|
} |