/** * <summary> * Returns the Z component of the acceleration, as a floating point number. * <para> * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the Z component of the acceleration, as a floating point number * </returns> * <para> * On failure, throws an exception or returns <c>YAccelerometer.ZVALUE_INVALID</c>. * </para> */ public double get_zValue() { double res; if (_func == null) { throw new YoctoApiProxyException("No Accelerometer connected"); } res = _func.get_zValue(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }