AU
- Absolute unitRU
- Relative unitA
- the absolute typeR
- the corresponding relative typepublic interface FunctionsAbs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,A extends Absolute & Value<AU>,R extends Relative & Value<RU>>
Copyright (c) 2013-2019 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 |
---|---|
R |
minus(A abs)
Subtract an Absolute value from this Absolute value for a vector or matrix.
|
A |
minus(R rel)
Subtract a Relative value from this Absolute value for a vector or matrix.
|
A |
plus(R rel)
Add a Relative value to this Absolute value for a vector or matrix.
|
A plus(R rel) throws ValueException
rel
- R; R the right operandValueException
- in case this vector and the operand have a different sizeA minus(R rel) throws ValueException
rel
- R; R the right operandValueException
- in case this vector and the operand have a different sizeR minus(A abs) throws ValueException
abs
- A; A the right operandValueException
- in case this vector and the operand have a different sizeCopyright © 2015–2019 Delft University of Technology. All rights reserved.