U - the Unit typeA - the absolute typeR - the corresponding relative typepublic interface FunctionsRel<U extends Unit<U>,A extends Absolute & Value<U>,R extends Relative & Value<U>>
Copyright (c) 2013-2015 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 Delft University of Technology. All rights reserved.