diff --git a/src/Acceleration.java b/src/Acceleration.java index f3b962d..5a9ae7e 100644 --- a/src/Acceleration.java +++ b/src/Acceleration.java @@ -5,7 +5,7 @@ private double mass; private Velocity velocity; private Onground onground; - private Pair acceleration; + private Pair value; public void updateForce(Pair force) { this.force = force; @@ -15,8 +15,8 @@ } else { temp_l3 = new Pair<>((force.getFirst() / mass), (force.getSecond() / mass)); } - acceleration = temp_l3; - velocity.updateAcceleration(acceleration); + value = temp_l3; + velocity.updateAcceleration(value); } public void updateMass(double mass) { @@ -27,15 +27,15 @@ } else { temp_l6 = new Pair<>((force.getFirst() / mass), (force.getSecond() / mass)); } - acceleration = temp_l6; - velocity.updateAcceleration(acceleration); + value = temp_l6; + velocity.updateAcceleration(value); } public Acceleration(Velocity velocity, Onground onground) { this.onground = onground; } - public Pair getAcceleration() { - return acceleration; + public Pair getValue() { + return value; } } \ No newline at end of file