diff options
author | Emile <hanemile@protonmail.com> | 2019-02-13 22:36:23 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-02-13 22:36:23 +0100 |
commit | 71b15249b36e8408d48531d89a01cc7d7b044ebe (patch) | |
tree | bbefff6c4f0a9e16bb0216cf6a85f0c2ac4cdd4b /http.go | |
parent | bbed0542a975bdb1a67aadabea7a54b580fcbd08 (diff) |
working!
Diffstat (limited to 'http.go')
-rw-r--r-- | http.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/http.go b/http.go index 7df8ed0..2f87c5d 100644 --- a/http.go +++ b/http.go @@ -18,7 +18,7 @@ package main import ( "database/sql" - "git.darknebu.la/GalaxySimulator/db-container/db_actions" + "git.darknebu.la/GalaxySimulator/db_actions" "git.darknebu.la/GalaxySimulator/structs" ) @@ -95,3 +95,14 @@ func updateCenterOfMassEndpoint(db *sql.DB, index int64) { func genForestTreeEndpoint(db *sql.DB, index int64) string { return db_actions.GenForestTree(db, index) } + +func testCalcEndpoint(db *sql.DB) { + + star := structs.Star2D{ + structs.Vec2{110, 110}, + structs.Vec2{0, 0}, + 1000, + } + + db_actions.CalcAllForces(db, star, 0.1) +} |