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