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