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