(this actually solves the reported bug; apogeeAltitude was being set to the first altitude after apogee which could in pathological conditions already be 0).
(this actually solves the reported bug; apogeeAltitude was being set to the first altitude after apogee which could in pathological conditions already be 0).