public final class ValueUtil extends Object
This file was generated by the OpenTrafficSim value classes generator, 26 jun, 2015
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
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 © 2014–2015 Delft University of Technology. All rights reserved.