/** * <summary> * Returns the current horizontal dilution of precision, * the smaller that number is, the better . * <para> * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the current horizontal dilution of precision, * the smaller that number is, the better * </returns> * <para> * On failure, throws an exception or returns <c>YGps.DILUTION_INVALID</c>. * </para> */ public double get_dilution() { double res; if (_func == null) { throw new YoctoApiProxyException("No Gps connected"); } res = _func.get_dilution(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }