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