getTotalDown method
Get total terrain elevation down.
Parameters
- IN start Begin distance on route for sample interval.
- IN end End distance on route for sample interval.
Returns
- Total terrain elevation down
If start or end are invalid, the result will be 0.
Throws
- An exception if it fails
Implementation
double getTotalDown(int start, int end) {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteTerrainProfile',
'getTotalDownBE',
args: <String, int>{
'first': start,
'second': end,
},
);
double result = resultString['result'];
if (result.abs() < 0.0001) {
result = 0;
}
return result;
}