public final class ValueUtil extends Object
This file was generated by the djunits value classes generator, 26 jun, 2015
Copyright (c) 2015-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2016-05-28 14:25:52 +0200 (Sat, 28 May 2016) $, @version $Revision: 202 $, by $Author: averbraeck $, initial
version 26 jun, 2015
| Modifier and Type | Method and Description |
|---|---|
static double |
expressAsSIUnit(double value,
Unit<?> unit)
Convert a value in a given unit into the equivalent in the standard SI unit.
|
static double |
expressAsUnit(double siValue,
Unit<?> targetUnit)
Convert a value from the standard SI unit into a compatible unit.
|
public static double expressAsSIUnit(double value,
Unit<?> unit)
value - double; the value to convert into the standard SI unitunit - Unit<?>; the unit of the given valuepublic static double expressAsUnit(double siValue,
Unit<?> targetUnit)
siValue - double; the given value in the standard SI unittargetUnit - Unit<?>; the unit to convert the value intoCopyright © 2015–2016 Delft University of Technology. All rights reserved.