public final class ValueUtil extends Object
This file was generated by the djunits value classes generator, 26 jun, 2015
Copyright (c) 2015-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, 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–2018 Delft University of Technology. All rights reserved.