public static class Temperature.Rel extends DoubleScalar.Rel<TemperatureUnit>
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.
$LastChangedDate: 2015-10-04 20:47:10 +0200 (Sun, 04 Oct 2015) $, @version $Revision: 86 $, by $Author: averbraeck $,
initial version Sep 1, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
Rel(DoubleScalar.Rel<TemperatureUnit> value)
Construct Temperature.Rel scalar.
|
Rel(double value,
TemperatureUnit unit)
Construct Temperature.Rel scalar.
|
| Modifier and Type | Method and Description |
|---|---|
Temperature.Rel |
abs()
Set the value(s) to their absolute value.
|
Temperature.Rel |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
Temperature.Rel |
asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
Temperature.Rel |
atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
Temperature.Rel |
cbrt()
Set the value(s) to the(ir) cube root.
|
Temperature.Rel |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
Temperature.Rel |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
Temperature.Rel |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
Temperature.Rel |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Dimensionless.Rel |
divideBy(Temperature.Rel v)
Calculate the division of Temperature and Temperature, which results in a Dimensionless scalar.
|
Temperature.Rel |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
Temperature.Rel |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
Temperature.Rel |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
static Temperature.Rel |
interpolate(Temperature.Rel zero,
Temperature.Rel one,
double ratio)
Interpolate between two values.
|
Temperature.Rel |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
Temperature.Rel |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
Temperature.Rel |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
Temperature.Rel |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
Temperature.Rel |
minus(Temperature.Rel v)
Relative scalar minus Relative scalar = Relative scalar.
|
Temperature.Rel |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
Temperature.Abs |
plus(Temperature.Abs v)
Relative scalar plus Absolute scalar = Absolute scalar.
|
Temperature.Rel |
plus(Temperature.Rel v)
Relative scalar plus Relative scalar = Relative scalar.
|
Temperature.Rel |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
Temperature.Rel |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
Temperature.Rel |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
Temperature.Rel |
signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
Temperature.Rel |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
Temperature.Rel |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
Temperature.Rel |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
Temperature.Rel |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
Temperature.Rel |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
Temperature.Abs |
toAbs()
Translate the relative scalar into an absolute scalar (e.g., before or after a multiplication or division).
|
Temperature.Rel |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
Temperature.Rel |
toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
compareTo, eq, ge, getSI, gt, le, lt, minus, ne, plusdivide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, hashCode, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, plus, plus, plus, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativebyteValue, shortValuepublic Rel(double value,
TemperatureUnit unit)
value - double valueunit - unit for the double valuepublic Rel(DoubleScalar.Rel<TemperatureUnit> value)
value - Scalar from which to construct this instancepublic static Temperature.Rel interpolate(Temperature.Rel zero, Temperature.Rel one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final Temperature.Rel abs()
abs in interface MathFunctions<DoubleScalar<TemperatureUnit>>abs in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel acos()
acos in interface MathFunctions<DoubleScalar<TemperatureUnit>>acos in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel asin()
asin in interface MathFunctions<DoubleScalar<TemperatureUnit>>asin in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel atan()
atan in interface MathFunctions<DoubleScalar<TemperatureUnit>>atan in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel cbrt()
cbrt in interface MathFunctions<DoubleScalar<TemperatureUnit>>cbrt in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel ceil()
ceil in interface MathFunctions<DoubleScalar<TemperatureUnit>>ceil in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel cos()
cos in interface MathFunctions<DoubleScalar<TemperatureUnit>>cos in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel cosh()
cosh in interface MathFunctions<DoubleScalar<TemperatureUnit>>cosh in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel exp()
exp in interface MathFunctions<DoubleScalar<TemperatureUnit>>exp in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel expm1()
expm1 in interface MathFunctions<DoubleScalar<TemperatureUnit>>expm1 in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel floor()
floor in interface MathFunctions<DoubleScalar<TemperatureUnit>>floor in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel log()
log in interface MathFunctions<DoubleScalar<TemperatureUnit>>log in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel log10()
log10 in interface MathFunctions<DoubleScalar<TemperatureUnit>>log10 in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel log1p()
log1p in interface MathFunctions<DoubleScalar<TemperatureUnit>>log1p in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel rint()
rint in interface MathFunctions<DoubleScalar<TemperatureUnit>>rint in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel round()
round in interface MathFunctions<DoubleScalar<TemperatureUnit>>round in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel signum()
signum in interface MathFunctions<DoubleScalar<TemperatureUnit>>signum in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel sin()
sin in interface MathFunctions<DoubleScalar<TemperatureUnit>>sin in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel sinh()
sinh in interface MathFunctions<DoubleScalar<TemperatureUnit>>sinh in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel sqrt()
sqrt in interface MathFunctions<DoubleScalar<TemperatureUnit>>sqrt in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel tan()
tan in interface MathFunctions<DoubleScalar<TemperatureUnit>>tan in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel tanh()
tanh in interface MathFunctions<DoubleScalar<TemperatureUnit>>tanh in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel inv()
inv in interface MathFunctions<DoubleScalar<TemperatureUnit>>inv in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<TemperatureUnit>>toDegrees in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel toRadians()
toRadians in interface MathFunctions<DoubleScalar<TemperatureUnit>>toRadians in class DoubleScalar.Rel<TemperatureUnit>public final Temperature.Rel pow(double x)
pow in interface MathFunctions<DoubleScalar<TemperatureUnit>>pow in class DoubleScalar.Rel<TemperatureUnit>x - double; the value to use as the powerpublic final Temperature.Rel multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<TemperatureUnit>>multiplyBy in class DoubleScalar.Rel<TemperatureUnit>factor - double; the multiplierpublic final Temperature.Rel divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<TemperatureUnit>>divideBy in class DoubleScalar.Rel<TemperatureUnit>divisor - double; the divisorpublic final Temperature.Rel plus(Temperature.Rel v)
v - the value to addpublic final Temperature.Rel minus(Temperature.Rel v)
v - the value to subtractpublic final Temperature.Abs plus(Temperature.Abs v)
v - the value to addpublic final Temperature.Abs toAbs()
public final Dimensionless.Rel divideBy(Temperature.Rel v)
v - Temperature scalarCopyright © 2015 Delft University of Technology. All rights reserved.