summaryrefslogtreecommitdiffstats
path: root/src/fdgl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fdgl.hpp')
-rw-r--r--src/fdgl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fdgl.hpp b/src/fdgl.hpp
index d2fb17a..b40f333 100644
--- a/src/fdgl.hpp
+++ b/src/fdgl.hpp
@@ -16,8 +16,8 @@
#include <float.h>
#include <math.h>
-static const double CHARGE_KE = 2000000.0;
-static const double EDGE_K = 32.0;
+static const double CHARGE_KE = 1000000.0;
+static const double EDGE_K = 16.0;
static const double EDGE_LEN = 0.1;
struct Region {
@@ -148,7 +148,7 @@ rect_distance(Vector* vec,
inline Vector
repel_force(const Region& a, const Region& b)
{
- static const double MIN_DIST = DBL_EPSILON;
+ static const double MIN_DIST = 1.0;
Vector vec;
double dist = rect_distance(