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