public static class FloatTime.Rel extends FloatScalar.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
FloatScalar.Abs<U extends Unit<U>>, FloatScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
Rel(double value,
TimeUnit unit)
Construct FloatTime.Rel scalar using a double value.
|
Rel(FloatScalar.Rel<TimeUnit> value)
Construct FloatTime.Rel scalar.
|
Rel(float value,
TimeUnit unit)
Construct FloatTime.Rel scalar.
|
| Modifier and Type | Method and Description |
|---|---|
FloatTime.Rel |
abs()
Set the value(s) to their absolute value.
|
FloatTime.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.
|
FloatTime.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.
|
FloatTime.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.
|
FloatTime.Rel |
cbrt()
Set the value(s) to the(ir) cube root.
|
FloatTime.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.
|
FloatTime.Rel |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
FloatTime.Rel |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
FloatTime.Rel |
divideBy(double factor)
Divide scalar by a double factor.
|
FloatTime.Rel |
divideBy(float divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
FloatDimensionless.Rel |
divideBy(FloatTime.Rel v)
Calculate the division of FloatTime and FloatTime, which results in a FloatDimensionless scalar.
|
FloatTime.Rel |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
FloatTime.Rel |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
FloatTime.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 FloatTime.Rel |
interpolate(FloatTime.Rel zero,
FloatTime.Rel one,
double ratio)
Interpolate between two values.
|
static FloatTime.Rel |
interpolate(FloatTime.Rel zero,
FloatTime.Rel one,
float ratio)
Interpolate between two values.
|
FloatTime.Rel |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
FloatTime.Rel |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
FloatTime.Rel |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
FloatTime.Rel |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
FloatTime.Rel |
minus(FloatTime.Rel v)
Relative scalar minus Relative scalar = Relative scalar.
|
FloatTime.Rel |
multiplyBy(double factor)
Multiply scalar with a double factor.
|
FloatTime.Rel |
multiplyBy(float factor)
Scale the value(s) by a factor.
|
FloatSpeed |
multiplyBy(FloatAcceleration v)
Calculate the multiplication of FloatTime and FloatAcceleration, which results in a FloatSpeed scalar.
|
FloatElectricalCharge |
multiplyBy(FloatElectricalCurrent v)
Calculate the multiplication of FloatTime and FloatElectricalCurrent, which results in a FloatElectricalCharge
scalar.
|
FloatMass |
multiplyBy(FloatFlowMass v)
Calculate the multiplication of FloatTime and FloatFlowMass, which results in a FloatMass scalar.
|
FloatVolume |
multiplyBy(FloatFlowVolume v)
Calculate the multiplication of FloatTime and FloatFlowVolume, which results in a FloatVolume scalar.
|
FloatDimensionless.Rel |
multiplyBy(FloatFrequency v)
Calculate the multiplication of FloatTime and FloatFrequency, which results in a FloatDimensionless scalar.
|
FloatMoney |
multiplyBy(FloatMoneyPerTime v)
Calculate the multiplication of FloatTime and FloatMoneyPerTime, which results in a FloatMoney scalar.
|
FloatEnergy |
multiplyBy(FloatPower v)
Calculate the multiplication of FloatTime and FloatPower, which results in a FloatEnergy scalar.
|
FloatLength.Rel |
multiplyBy(FloatSpeed v)
Calculate the multiplication of FloatTime and FloatSpeed, which results in a FloatLength scalar.
|
FloatTime.Abs |
plus(FloatTime.Abs v)
Relative scalar plus Absolute scalar = Absolute scalar.
|
FloatTime.Rel |
plus(FloatTime.Rel v)
Relative scalar plus Relative scalar = Relative scalar.
|
FloatTime.Rel |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
FloatTime.Rel |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
FloatTime.Rel |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
FloatTime.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.
|
FloatTime.Rel |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
FloatTime.Rel |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
FloatTime.Rel |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
FloatTime.Rel |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
FloatTime.Rel |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
FloatTime.Abs |
toAbs()
Translate the relative scalar into an absolute scalar (e.g., before or after a multiplication or division).
|
FloatTime.Rel |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
FloatTime.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(float value,
TimeUnit unit)
value - float valueunit - unit for the float valuepublic Rel(double value,
TimeUnit unit)
value - float valueunit - unit for the float valuepublic Rel(FloatScalar.Rel<TimeUnit> value)
value - Scalar from which to construct this instancepublic static FloatTime.Rel interpolate(FloatTime.Rel zero, FloatTime.Rel one, float ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic static FloatTime.Rel interpolate(FloatTime.Rel zero, FloatTime.Rel one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final FloatTime.Rel abs()
abs in interface MathFunctions<FloatScalar<TimeUnit>>abs in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel acos()
acos in interface MathFunctions<FloatScalar<TimeUnit>>acos in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel asin()
asin in interface MathFunctions<FloatScalar<TimeUnit>>asin in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel atan()
atan in interface MathFunctions<FloatScalar<TimeUnit>>atan in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel cbrt()
cbrt in interface MathFunctions<FloatScalar<TimeUnit>>cbrt in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel ceil()
ceil in interface MathFunctions<FloatScalar<TimeUnit>>ceil in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel cos()
cos in interface MathFunctions<FloatScalar<TimeUnit>>cos in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel cosh()
cosh in interface MathFunctions<FloatScalar<TimeUnit>>cosh in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel exp()
exp in interface MathFunctions<FloatScalar<TimeUnit>>exp in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel expm1()
expm1 in interface MathFunctions<FloatScalar<TimeUnit>>expm1 in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel floor()
floor in interface MathFunctions<FloatScalar<TimeUnit>>floor in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel log()
log in interface MathFunctions<FloatScalar<TimeUnit>>log in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel log10()
log10 in interface MathFunctions<FloatScalar<TimeUnit>>log10 in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel log1p()
log1p in interface MathFunctions<FloatScalar<TimeUnit>>log1p in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel rint()
rint in interface MathFunctions<FloatScalar<TimeUnit>>rint in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel round()
round in interface MathFunctions<FloatScalar<TimeUnit>>round in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel signum()
signum in interface MathFunctions<FloatScalar<TimeUnit>>signum in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel sin()
sin in interface MathFunctions<FloatScalar<TimeUnit>>sin in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel sinh()
sinh in interface MathFunctions<FloatScalar<TimeUnit>>sinh in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel sqrt()
sqrt in interface MathFunctions<FloatScalar<TimeUnit>>sqrt in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel tan()
tan in interface MathFunctions<FloatScalar<TimeUnit>>tan in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel tanh()
tanh in interface MathFunctions<FloatScalar<TimeUnit>>tanh in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel inv()
inv in interface MathFunctions<FloatScalar<TimeUnit>>inv in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel toDegrees()
toDegrees in interface MathFunctions<FloatScalar<TimeUnit>>toDegrees in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel toRadians()
toRadians in interface MathFunctions<FloatScalar<TimeUnit>>toRadians in class FloatScalar.Rel<TimeUnit>public final FloatTime.Rel pow(double x)
pow in interface MathFunctions<FloatScalar<TimeUnit>>pow in class FloatScalar.Rel<TimeUnit>x - double; the value to use as the powerpublic final FloatTime.Rel multiplyBy(float factor)
multiplyBy in interface FloatMathFunctions<FloatScalar<TimeUnit>>multiplyBy in class FloatScalar.Rel<TimeUnit>factor - float; the multiplierpublic final FloatTime.Rel multiplyBy(double factor)
factor - the factor to multiply withpublic final FloatTime.Rel divideBy(float divisor)
divideBy in interface FloatMathFunctions<FloatScalar<TimeUnit>>divideBy in class FloatScalar.Rel<TimeUnit>divisor - float; the divisorpublic final FloatTime.Rel divideBy(double factor)
factor - the factor to divide bypublic final FloatTime.Rel plus(FloatTime.Rel v)
v - the value to addpublic final FloatTime.Rel minus(FloatTime.Rel v)
v - the value to subtractpublic final FloatTime.Abs plus(FloatTime.Abs v)
v - the value to addpublic final FloatTime.Abs toAbs()
public final FloatDimensionless.Rel divideBy(FloatTime.Rel v)
v - FloatTime scalarpublic final FloatDimensionless.Rel multiplyBy(FloatFrequency v)
v - FloatTime scalarpublic final FloatElectricalCharge multiplyBy(FloatElectricalCurrent v)
v - FloatTime scalarpublic final FloatMass multiplyBy(FloatFlowMass v)
v - FloatTime scalarpublic final FloatVolume multiplyBy(FloatFlowVolume v)
v - FloatTime scalarpublic final FloatSpeed multiplyBy(FloatAcceleration v)
v - FloatTime scalarpublic final FloatEnergy multiplyBy(FloatPower v)
v - FloatTime scalarpublic final FloatLength.Rel multiplyBy(FloatSpeed v)
v - FloatTime scalarpublic final FloatMoney multiplyBy(FloatMoneyPerTime v)
v - FloatTime scalarCopyright © 2015 Delft University of Technology. All rights reserved.