public static class Time.Rel extends DoubleScalar.Rel<TimeUnit>
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<TimeUnit> value)
Construct Time.Rel scalar.
|
Rel(double value,
TimeUnit unit)
Construct Time.Rel scalar.
|
| Modifier and Type | Method and Description |
|---|---|
Time.Rel |
abs()
Set the value(s) to their absolute value.
|
Time.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.
|
Time.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.
|
Time.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.
|
Time.Rel |
cbrt()
Set the value(s) to the(ir) cube root.
|
Time.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.
|
Time.Rel |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
Time.Rel |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
Time.Rel |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Dimensionless.Rel |
divideBy(Time.Rel v)
Calculate the division of Time and Time, which results in a Dimensionless scalar.
|
Time.Rel |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
Time.Rel |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
Time.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 Time.Rel |
interpolate(Time.Rel zero,
Time.Rel one,
double ratio)
Interpolate between two values.
|
Time.Rel |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
Time.Rel |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
Time.Rel |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
Time.Rel |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
Time.Rel |
minus(Time.Rel v)
Relative scalar minus Relative scalar = Relative scalar.
|
Speed |
multiplyBy(Acceleration v)
Calculate the multiplication of Time and Acceleration, which results in a Speed scalar.
|
Time.Rel |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
ElectricalCharge |
multiplyBy(ElectricalCurrent v)
Calculate the multiplication of Time and ElectricalCurrent, which results in a ElectricalCharge scalar.
|
Mass |
multiplyBy(FlowMass v)
Calculate the multiplication of Time and FlowMass, which results in a Mass scalar.
|
Volume |
multiplyBy(FlowVolume v)
Calculate the multiplication of Time and FlowVolume, which results in a Volume scalar.
|
Dimensionless.Rel |
multiplyBy(Frequency v)
Calculate the multiplication of Time and Frequency, which results in a Dimensionless scalar.
|
Money |
multiplyBy(MoneyPerTime v)
Calculate the multiplication of Time and MoneyPerTime, which results in a Money scalar.
|
Energy |
multiplyBy(Power v)
Calculate the multiplication of Time and Power, which results in a Energy scalar.
|
Length.Rel |
multiplyBy(Speed v)
Calculate the multiplication of Time and Speed, which results in a Length scalar.
|
Time.Abs |
plus(Time.Abs v)
Relative scalar plus Absolute scalar = Absolute scalar.
|
Time.Rel |
plus(Time.Rel v)
Relative scalar plus Relative scalar = Relative scalar.
|
Time.Rel |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
Time.Rel |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
Time.Rel |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
Time.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.
|
Time.Rel |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
Time.Rel |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
Time.Rel |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
Time.Rel |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
Time.Rel |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
Time.Abs |
toAbs()
Translate the relative scalar into an absolute scalar (e.g., before or after a multiplication or division).
|
Time.Rel |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
Time.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,
TimeUnit unit)
value - double valueunit - unit for the double valuepublic Rel(DoubleScalar.Rel<TimeUnit> value)
value - Scalar from which to construct this instancepublic static Time.Rel interpolate(Time.Rel zero, Time.Rel one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final Time.Rel abs()
abs in interface MathFunctions<DoubleScalar<TimeUnit>>abs in class DoubleScalar.Rel<TimeUnit>public final Time.Rel acos()
acos in interface MathFunctions<DoubleScalar<TimeUnit>>acos in class DoubleScalar.Rel<TimeUnit>public final Time.Rel asin()
asin in interface MathFunctions<DoubleScalar<TimeUnit>>asin in class DoubleScalar.Rel<TimeUnit>public final Time.Rel atan()
atan in interface MathFunctions<DoubleScalar<TimeUnit>>atan in class DoubleScalar.Rel<TimeUnit>public final Time.Rel cbrt()
cbrt in interface MathFunctions<DoubleScalar<TimeUnit>>cbrt in class DoubleScalar.Rel<TimeUnit>public final Time.Rel ceil()
ceil in interface MathFunctions<DoubleScalar<TimeUnit>>ceil in class DoubleScalar.Rel<TimeUnit>public final Time.Rel cos()
cos in interface MathFunctions<DoubleScalar<TimeUnit>>cos in class DoubleScalar.Rel<TimeUnit>public final Time.Rel cosh()
cosh in interface MathFunctions<DoubleScalar<TimeUnit>>cosh in class DoubleScalar.Rel<TimeUnit>public final Time.Rel exp()
exp in interface MathFunctions<DoubleScalar<TimeUnit>>exp in class DoubleScalar.Rel<TimeUnit>public final Time.Rel expm1()
expm1 in interface MathFunctions<DoubleScalar<TimeUnit>>expm1 in class DoubleScalar.Rel<TimeUnit>public final Time.Rel floor()
floor in interface MathFunctions<DoubleScalar<TimeUnit>>floor in class DoubleScalar.Rel<TimeUnit>public final Time.Rel log()
log in interface MathFunctions<DoubleScalar<TimeUnit>>log in class DoubleScalar.Rel<TimeUnit>public final Time.Rel log10()
log10 in interface MathFunctions<DoubleScalar<TimeUnit>>log10 in class DoubleScalar.Rel<TimeUnit>public final Time.Rel log1p()
log1p in interface MathFunctions<DoubleScalar<TimeUnit>>log1p in class DoubleScalar.Rel<TimeUnit>public final Time.Rel rint()
rint in interface MathFunctions<DoubleScalar<TimeUnit>>rint in class DoubleScalar.Rel<TimeUnit>public final Time.Rel round()
round in interface MathFunctions<DoubleScalar<TimeUnit>>round in class DoubleScalar.Rel<TimeUnit>public final Time.Rel signum()
signum in interface MathFunctions<DoubleScalar<TimeUnit>>signum in class DoubleScalar.Rel<TimeUnit>public final Time.Rel sin()
sin in interface MathFunctions<DoubleScalar<TimeUnit>>sin in class DoubleScalar.Rel<TimeUnit>public final Time.Rel sinh()
sinh in interface MathFunctions<DoubleScalar<TimeUnit>>sinh in class DoubleScalar.Rel<TimeUnit>public final Time.Rel sqrt()
sqrt in interface MathFunctions<DoubleScalar<TimeUnit>>sqrt in class DoubleScalar.Rel<TimeUnit>public final Time.Rel tan()
tan in interface MathFunctions<DoubleScalar<TimeUnit>>tan in class DoubleScalar.Rel<TimeUnit>public final Time.Rel tanh()
tanh in interface MathFunctions<DoubleScalar<TimeUnit>>tanh in class DoubleScalar.Rel<TimeUnit>public final Time.Rel inv()
inv in interface MathFunctions<DoubleScalar<TimeUnit>>inv in class DoubleScalar.Rel<TimeUnit>public final Time.Rel toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<TimeUnit>>toDegrees in class DoubleScalar.Rel<TimeUnit>public final Time.Rel toRadians()
toRadians in interface MathFunctions<DoubleScalar<TimeUnit>>toRadians in class DoubleScalar.Rel<TimeUnit>public final Time.Rel pow(double x)
pow in interface MathFunctions<DoubleScalar<TimeUnit>>pow in class DoubleScalar.Rel<TimeUnit>x - double; the value to use as the powerpublic final Time.Rel multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<TimeUnit>>multiplyBy in class DoubleScalar.Rel<TimeUnit>factor - double; the multiplierpublic final Time.Rel divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<TimeUnit>>divideBy in class DoubleScalar.Rel<TimeUnit>divisor - double; the divisorpublic final Time.Rel plus(Time.Rel v)
v - the value to addpublic final Time.Rel minus(Time.Rel v)
v - the value to subtractpublic final Time.Abs plus(Time.Abs v)
v - the value to addpublic final Time.Abs toAbs()
public final Dimensionless.Rel divideBy(Time.Rel v)
v - Time scalarpublic final Dimensionless.Rel multiplyBy(Frequency v)
v - Time scalarpublic final ElectricalCharge multiplyBy(ElectricalCurrent v)
v - Time scalarpublic final Mass multiplyBy(FlowMass v)
v - Time scalarpublic final Volume multiplyBy(FlowVolume v)
v - Time scalarpublic final Speed multiplyBy(Acceleration v)
v - Time scalarpublic final Energy multiplyBy(Power v)
v - Time scalarpublic final Length.Rel multiplyBy(Speed v)
v - Time scalarpublic final Money multiplyBy(MoneyPerTime v)
v - Time scalarCopyright © 2015 Delft University of Technology. All rights reserved.