From 71b15249b36e8408d48531d89a01cc7d7b044ebe Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 13 Feb 2019 22:36:23 +0100 Subject: working! --- http.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'http.go') 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) +} -- cgit 1.4.1