refactor: 重构项目结构为 MVS 多示例版本,添加 README 文档
This commit is contained in:
10
MVS/VolumeRenderer/Utils.cpp
Normal file
10
MVS/VolumeRenderer/Utils.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "Utils.h"
|
||||
#include <math.h>
|
||||
#include <algorithm>
|
||||
|
||||
float srandom() {
|
||||
float number = float(rand())/float(RAND_MAX);//0.0~1.0f
|
||||
number *= 2.0f;//0.0~2.0
|
||||
number -= 1.0f;//-1.0f~1.0f;
|
||||
return number;
|
||||
}
|
||||
Reference in New Issue
Block a user