AB3: BodyLinkedList working

This commit is contained in:
2022-03-31 19:50:10 +02:00
parent cf4c1ad9d0
commit f24ad9bcaf
7 changed files with 252 additions and 51 deletions

View File

@ -78,7 +78,7 @@ public class Aufgabe3Test {
testValue(bfm.get(earth).distanceTo(earth.gravitationalForce(sun)), 0);
testValue(bfm.get(sun).distanceTo(sun.gravitationalForce(earth).plus(sun.gravitationalForce(venus))), 0);
testValue(bfm.put(earth, new Vector3(0, 0, 0)).distanceTo(earth.gravitationalForce(sun)), 0);
testValue(bfm.get(mercury).distanceTo(mercury.gravitationalForce(sun)), 0);
testValue(bfm.get(earth).distanceTo(new Vector3(0, 0, 0)), 0);
testValue(bfm.get(mercury), mercury.gravitationalForce(sun));