public class MoneyPerLength extends DoubleScalar.Rel<MoneyPerLengthUnit> implements Relative
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-07 11:49:36 +0200 (Wed, 07 Oct 2015) $, @version $Revision: 92 $, by $Author: averbraeck $,
initial version Sep 5, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
MoneyPerLength(double value,
MoneyPerLengthUnit unit)
Construct MoneyPerLength scalar.
|
MoneyPerLength(DoubleScalar.Rel<MoneyPerLengthUnit> value)
Construct MoneyPerLength scalar.
|
| Modifier and Type | Method and Description |
|---|---|
MoneyPerLength |
abs()
Set the value(s) to their absolute value.
|
MoneyPerLength |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MoneyPerLength |
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.
|
MoneyPerLength |
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.
|
MoneyPerLength |
cbrt()
Set the value(s) to the(ir) cube root.
|
MoneyPerLength |
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.
|
MoneyPerLength |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MoneyPerLength |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MoneyPerLength |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Money |
divideBy(LinearDensity v)
Calculate the division of MoneyPerLength and LinearDensity, which results in a Money scalar.
|
Dimensionless.Rel |
divideBy(MoneyPerLength v)
Calculate the division of MoneyPerLength and MoneyPerLength, which results in a Dimensionless scalar.
|
MoneyPerLength |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MoneyPerLength |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MoneyPerLength |
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 MoneyPerLength |
interpolate(MoneyPerLength zero,
MoneyPerLength one,
double ratio)
Interpolate between two values.
|
MoneyPerLength |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MoneyPerLength |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MoneyPerLength |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MoneyPerLength |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MoneyPerLength |
minus(MoneyPerLength v)
Relative scalar minus Relative scalar = Relative scalar.
|
MoneyPerLength |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
Money |
multiplyBy(Length.Rel v)
Calculate the multiplication of MoneyPerLength and Length, which results in a Money scalar.
|
MoneyPerLength |
plus(MoneyPerLength v)
Relative scalar plus Relative scalar = Relative scalar.
|
MoneyPerLength |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MoneyPerLength |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MoneyPerLength |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MoneyPerLength |
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.
|
MoneyPerLength |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MoneyPerLength |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MoneyPerLength |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MoneyPerLength |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MoneyPerLength |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MoneyPerLength |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
MoneyPerLength |
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 MoneyPerLength(double value,
MoneyPerLengthUnit unit)
value - double valueunit - unit for the double valuepublic MoneyPerLength(DoubleScalar.Rel<MoneyPerLengthUnit> value)
value - Scalar from which to construct this instancepublic static MoneyPerLength interpolate(MoneyPerLength zero, MoneyPerLength one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final MoneyPerLength abs()
abs in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>abs in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength acos()
acos in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>acos in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength asin()
asin in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>asin in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength atan()
atan in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>atan in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength cbrt()
cbrt in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>cbrt in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength ceil()
ceil in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>ceil in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength cos()
cos in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>cos in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength cosh()
cosh in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>cosh in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength exp()
exp in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>exp in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength expm1()
expm1 in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>expm1 in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength floor()
floor in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>floor in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength log()
log in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>log in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength log10()
log10 in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>log10 in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength log1p()
log1p in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>log1p in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength rint()
rint in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>rint in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength round()
round in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>round in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength signum()
signum in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>signum in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength sin()
sin in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>sin in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength sinh()
sinh in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>sinh in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength sqrt()
sqrt in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>sqrt in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength tan()
tan in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>tan in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength tanh()
tanh in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>tanh in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength inv()
inv in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>inv in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>toDegrees in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength toRadians()
toRadians in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>toRadians in class DoubleScalar.Rel<MoneyPerLengthUnit>public final MoneyPerLength pow(double x)
pow in interface MathFunctions<DoubleScalar<MoneyPerLengthUnit>>pow in class DoubleScalar.Rel<MoneyPerLengthUnit>x - double; the value to use as the powerpublic final MoneyPerLength multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerLengthUnit>>multiplyBy in class DoubleScalar.Rel<MoneyPerLengthUnit>factor - double; the multiplierpublic final MoneyPerLength divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerLengthUnit>>divideBy in class DoubleScalar.Rel<MoneyPerLengthUnit>divisor - double; the divisorpublic final MoneyPerLength plus(MoneyPerLength v)
v - the value to addpublic final MoneyPerLength minus(MoneyPerLength v)
v - the value to subtractpublic final Dimensionless.Rel divideBy(MoneyPerLength v)
v - MoneyPerLength scalarpublic final Money multiplyBy(Length.Rel v)
v - MoneyPerLength scalarpublic final Money divideBy(LinearDensity v)
v - MoneyPerLength scalarCopyright © 2015 Delft University of Technology. All rights reserved.