getElevation static method
Implementation
static double getElevation(double? offset, double maxElevation) {
if (offset != null) {
double elevation =
(offset * 1) > maxElevation ? maxElevation : (offset * 1);
if (elevation >= 0) {
return elevation;
}
}
return 0.0;
}