public class AnalyticsElevationService
extends java.lang.Object
Constructor and Description |
---|
AnalyticsElevationService() |
Modifier and Type | Method and Description |
---|---|
static void |
findClosestControlPoint(double[] distances,
double[] cpDistances,
int seeker,
java.lang.String[] cpNames,
double totalDistance,
SeekerBarPanelPresenter seekerBarPanelPresenter) |
static double[] |
findContactPointElevationGain(int[] contactIndices,
GeoPointMetaData[] geoPoints) |
static double |
findInstantaneousSlope(double[] distance,
GeoPointMetaData[] geoPoints,
int i) |
static android.util.Pair<GeoPointMetaData,GeoPointMetaData> |
findMinMax(GeoPointMetaData[] geoPoints)
Returns a pair that describes the minimum altitude and the maximum altitude given an array of
altitudes.
|
static double |
findRouteMaximumSlope(double[] distance,
GeoPointMetaData[] geoPoints) |
static void |
findRouteSeekElevationGain(RouteData routeData,
int seekerIndex,
SeekerBarPanelPresenter seekerBarPanelPresenter) |
static double |
findRouteTotalElevation(RouteData routeData,
boolean gain,
int stopIndex)
Finds the summation of all of the gains or losses along a route in feet
|
static double[] |
findRouteTotalElevation(RouteData routeData,
int stopIndex)
Finds the summation of all of the gains or losses along a route in meters
|
public static android.util.Pair<GeoPointMetaData,GeoPointMetaData> findMinMax(GeoPointMetaData[] geoPoints)
public static double findRouteTotalElevation(RouteData routeData, boolean gain, int stopIndex)
routeData
- Route datagain
- True to calculate gain, false to calculate lossstopIndex
- The point index to stop at, if -1 use the entire lengthpublic static double[] findRouteTotalElevation(RouteData routeData, int stopIndex)
routeData
- Route datastopIndex
- The point index to stop at, if -1 use the entire lengthpublic static double[] findContactPointElevationGain(int[] contactIndices, GeoPointMetaData[] geoPoints)
public static void findRouteSeekElevationGain(RouteData routeData, int seekerIndex, SeekerBarPanelPresenter seekerBarPanelPresenter)
public static double findInstantaneousSlope(double[] distance, GeoPointMetaData[] geoPoints, int i)
public static double findRouteMaximumSlope(double[] distance, GeoPointMetaData[] geoPoints)
public static void findClosestControlPoint(double[] distances, double[] cpDistances, int seeker, java.lang.String[] cpNames, double totalDistance, SeekerBarPanelPresenter seekerBarPanelPresenter)