当前位置:网站首页>float与0比较
float与0比较
2022-07-03 03:11:00 【qq_40247880】
代码,运行结果
if (mSetting)
mpLocalMapper->mThFarPoints = mSetting->thFarPoints();
else
mpLocalMapper->mThFarPoints = fsSettings["thFarPoints"];
// ? 这里有个疑问,C++中浮点型跟0比较是否用精确?
if (mpLocalMapper->mThFarPoints != 0) {
cout << "Discard points further than " << mpLocalMapper->mThFarPoints << " m from current camera" << endl;
mpLocalMapper->mbFarPoints = true;
} else{
mpLocalMapper->mbFarPoints = false;
cout << "Compare points further than " << mpLocalMapper->mThFarPoints << " m from current camera" << endl;
}
结果
Compare points further than 0 m from current camera
边栏推荐
- Vs 2019 configure tensorrt to generate engine
- Unity3d RPG implementation (medium)
- 销毁Session和清空指定的属性
- C # general interface call
- [pyg] understand the messagepassing process, GCN demo details
- Docker install MySQL
- The XML file generated by labelimg is converted to VOC format
- Distributed transaction
- Le processus de connexion mysql avec docker
- 复选框的使用:全选,全不选,选一部分
猜你喜欢

Deep reinforcement learning for intelligent transportation systems: a survey paper reading notes

idea 加载不了应用市场解决办法(亲测)

MySql实战45讲【SQL查询和更新执行流程】

I2C subsystem (III): I2C driver

Check log4j problems using stain analysis
![45 lectures on MySQL [index]](/img/f6/70be00028908cbd9ed7f2c77687cee.png)
45 lectures on MySQL [index]

MySql实战45讲【行锁】

VS 2019安装及配置opencv

I2C subsystem (II): I3C spec

Vs 2019 configure tensorrt to generate engine
随机推荐
VS 2019安装及配置opencv
The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
解决高并发下System.currentTimeMillis卡顿
How do you adjust the scope of activerecord Association in rails 3- How do you scope ActiveRecord associations in Rails 3?
3D drawing example
【PyG】理解MessagePassing过程,GCN demo详解
Cron表达式介绍
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
el-tree搜索方法使用
Unity3d RPG implementation (medium)
open file in 'w' mode: IOError: [Errno 2] No such file or directory
I2C 子系统(二):I3C spec
@Accessors注解作用指定前缀遵守驼峰命名
Spark on yarn resource optimization ideas notes
[C语言]给账号密码进行MD5加密
ComponentScan和ComponentScans的区别
[Chongqing Guangdong education] cultural and natural heritage reference materials of China University of Geosciences (Wuhan)
文件重命名
Sous - système I2C (IV): débogage I2C
Solve high and send system Currenttimemillis Caton