forked from upstream-mirrors/OpenTracks
Change code style.
This commit is contained in:
@@ -24,6 +24,8 @@ import android.location.Location;
|
|||||||
*/
|
*/
|
||||||
public class CalorieUtils {
|
public class CalorieUtils {
|
||||||
|
|
||||||
|
private CalorieUtils() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resting VO2 is constant for everyone and is equal to 3.5 milliliters per
|
* Resting VO2 is constant for everyone and is equal to 3.5 milliliters per
|
||||||
* kilogram of body weight per minute.
|
* kilogram of body weight per minute.
|
||||||
@@ -184,14 +186,4 @@ public class CalorieUtils {
|
|||||||
return calculateExpenditureFoot(start, stop, grade, weight);
|
return calculateExpenditureFoot(start, stop, grade, weight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Calculates the calorie expenditure of locations in Joule.
|
|
||||||
*
|
|
||||||
* @param kcal
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static double changeKcalToJ(double kcal) {
|
|
||||||
return kcal * UnitConversions.KCAL_TO_J;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user