diff options
author | David Robillard <d@drobilla.net> | 2014-01-11 23:55:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-01-11 23:55:02 +0000 |
commit | b308ae521f19a41f0e7c59de2fe7b58ac443a74b (patch) | |
tree | b1dae93466bd8426be141f32008792e7c68973dd /src/fdgl.hpp | |
parent | 14905ea58cc45c450c517e354b6c3de90f5f249b (diff) | |
download | ganv-b308ae521f19a41f0e7c59de2fe7b58ac443a74b.tar.gz ganv-b308ae521f19a41f0e7c59de2fe7b58ac443a74b.tar.bz2 ganv-b308ae521f19a41f0e7c59de2fe7b58ac443a74b.zip |
FDGL: Reduce oscillation.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5305 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/fdgl.hpp')
-rw-r--r-- | src/fdgl.hpp | 6 |
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( |