[fix] fixes MIN_MASS check in MassCalculator

This commit is contained in:
Daniel_M_Williams 2020-05-07 18:09:53 -04:00
parent 0dc259ab4e
commit 61b6fc107f

View File

@ -66,7 +66,7 @@ public class MassCalculation {
}
public void addMass( final Coordinate pointMass ) {
if( MIN_MASS < this.centerOfMass.weight ){
if( MIN_MASS > this.centerOfMass.weight ){
this.centerOfMass = pointMass;
}else {
this.centerOfMass = this.centerOfMass.average( pointMass);