- int t = 0;
- for (double height : data.heights()) {
- if (height > apogee_height) {
- apogee_height = height;
- apogee_time = data.time(t);
+ for (MicroDataPoint point : data.points()) {
+ if (point.height > apogee_height) {
+ apogee_height = point.height;
+ apogee_time = point.time;