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