mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
Change code style.
This commit is contained in:
@@ -24,6 +24,8 @@ import android.location.Location;
|
||||
*/
|
||||
public class CalorieUtils {
|
||||
|
||||
private CalorieUtils() {}
|
||||
|
||||
/**
|
||||
* Resting VO2 is constant for everyone and is equal to 3.5 milliliters per
|
||||
* kilogram of body weight per minute.
|
||||
@@ -184,14 +186,4 @@ public class CalorieUtils {
|
||||
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