Skip to content

Commit c4926d9

Browse files
committed
Minor adjustments
1 parent d12ca92 commit c4926d9

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

include/States/Algorithms/GraphBased/Utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include <cmath>
4+
35
#include "States/Algorithms/GraphBased/Node.h"
46

57
namespace path_finding_visualizer {

include/States/Algorithms/SamplingBased/SamplingBased.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <imgui-SFML.h>
44
#include <imgui.h>
55

6-
#include <boost/math/constants/constants.hpp>
76
#include <condition_variable>
87
#include <future>
98
#include <memory>

include/States/Algorithms/SamplingBased/Utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#pragma once
22

3-
#include <math.h>
4-
3+
#include <cmath>
54
#include <vector>
65

76
namespace path_finding_visualizer {

src/States/Algorithms/SamplingBased/RRT_STAR/RRT_STAR.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ void RRT_STAR::initialize() {
4141
// update rewiring lower bounds
4242
// r_rrt > [(2*(1+1/d))*(area/unitNBallVolume)]^(1/d)
4343
r_rrt_ = rewire_factor_ *
44-
std::pow(2 * (1.0 + 1.0 / 2.0) *
45-
(1.0 / boost::math::constants::pi<double>()),
46-
1.0 / 2.0);
44+
std::pow(2 * (1.0 + 1.0 / 2.0) * (1.0 / M_PI), 1.0 / 2.0);
4745
}
4846

4947
// override initPlanner() function

0 commit comments

Comments
 (0)