private void checkForPeakZ(double z) {
		if (isUpPeakZ) {
			if (z < lastZ) {
				peakZ = lastZ;
				isUpPeakZ = false;
			}
		} else {
			if (z > lastZ) {
				peakZ = lastZ;
				isUpPeakZ = true;
			}
		}

		lastZ = z;
	}