/*
 * This class is identical in TankCalc and TankCalcAndroid
 * Please keep it that way
 */
package tankcalc;

/**
 *
 * @author lutusp
 */
public class TankCompResult {

    double volume;
    double wettedArea;
    double surfaceArea;
    double height;

    public TankCompResult() {
        volume = 0;
        wettedArea = 0;
        surfaceArea = 0;
        height = 0;
    }

    public TankCompResult(double v, double w, double s) {
        volume = v;
        wettedArea = w;
        surfaceArea = s;
    }

    protected void add(TankCompResult r) {
        volume += r.volume;
        wettedArea += r.wettedArea;
        surfaceArea += r.surfaceArea;
    }
}
