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