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