[fix] fixes MIN_MASS check in MassCalculator
This commit is contained in:
parent
0dc259ab4e
commit
61b6fc107f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user