public ISpecifications ScalarMultiplySpecifications(ISpecifications specifications, float scalar)
        {
            CarBodySpecifications specs = (CarBodySpecifications)specifications;
            var result = new CarBodySpecifications();
            Tuple <float, float> newScale = RepairScale(ScalarMultiplyScale(result, scalar));

            result.SetScale(newScale);
            var frontSpeed  = RepairSpeed(scalar * specs.MotorFrontSpeed);
            var backSpeed   = RepairSpeed(scalar * specs.MotorBackSpeed);
            var frontTorque = RepairTorque(scalar * specs.MotorFrontTorque);
            var backTorque  = RepairTorque(scalar * specs.MotorBackTorque);

            result.MotorBackSpeed   = backSpeed;
            result.MotorBackTorque  = backTorque;
            result.MotorFrontSpeed  = frontSpeed;
            result.MotorFrontTorque = frontTorque;
            return(result);
        }
        public ISpecifications AddSpecifications(ISpecifications specifications1, ISpecifications specifications2)
        {
            CarBodySpecifications carBodySpecifications1 = (CarBodySpecifications)specifications1;
            CarBodySpecifications carBodySpecifications2 = (CarBodySpecifications)specifications2;
            CarBodySpecifications result   = new CarBodySpecifications();
            Tuple <float, float>  newScale = RepairScale(GetScaleSum(carBodySpecifications1, carBodySpecifications2));

            result.SetScale(newScale);
            var frontSpeed =
                RepairSpeed(carBodySpecifications1.MotorFrontSpeed + carBodySpecifications2.MotorFrontSpeed);
            var backSpeed   = RepairSpeed(carBodySpecifications1.MotorBackSpeed + carBodySpecifications2.MotorBackSpeed);
            var frontTorque =
                RepairTorque(carBodySpecifications1.MotorFrontTorque + carBodySpecifications2.MotorFrontTorque);
            var backTorque =
                RepairTorque(carBodySpecifications1.MotorBackTorque + carBodySpecifications2.MotorBackTorque);

            result.MotorBackSpeed   = backSpeed;
            result.MotorBackTorque  = backTorque;
            result.MotorFrontSpeed  = frontSpeed;
            result.MotorFrontTorque = frontTorque;
            return(result);
        }