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