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