public class FloatTorque extends AbstractFloatScalarRel<TorqueUnit,FloatTorque>
FloatScalar.Rel<TorqueUnit> value = new FloatScalar.Rel<TorqueUnit>(100.0, TorqueUnit.SI);we can now write:
FloatTorque value = new FloatTorque(100.0, TorqueUnit.SI);The compiler will automatically recognize which units belong to which quantity, and whether the quantity type and the unit used are compatible.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-03-03 00:53:50 +0100 (Sun, 03 Mar 2019) $, @version $Revision: 349 $, by $Author: averbraeck $,
initial version Sep 5, 2015
Modifier and Type | Field and Description |
---|---|
static FloatTorque |
NaN
constant with value NaN.
|
static FloatTorque |
NEG_MAXVALUE
constant with value -MAX_VALUE.
|
static FloatTorque |
NEGATIVE_INFINITY
constant with value NEGATIVE_INFINITY.
|
static FloatTorque |
POS_MAXVALUE
constant with value MAX_VALUE.
|
static FloatTorque |
POSITIVE_INFINITY
constant with value POSITIVE_INFINITY.
|
static FloatTorque |
ZERO
constant with value zero.
|
si
NUMBER_PATTERN
Constructor and Description |
---|
FloatTorque(double value,
TorqueUnit unit)
Construct FloatTorque scalar using a double value.
|
FloatTorque(FloatTorque value)
Construct FloatTorque scalar.
|
FloatTorque(float value,
TorqueUnit unit)
Construct FloatTorque scalar.
|
Modifier and Type | Method and Description |
---|---|
static FloatTorque |
createSI(float value)
Construct FloatTorque scalar.
|
FloatPower |
divideBy(FloatDuration v)
Calculate the division of FloatTorque and FloatDuration, which results in a FloatPower scalar.
|
FloatLength |
divideBy(FloatForce v)
Calculate the division of FloatTorque and FloatForce, which results in a FloatLength scalar.
|
FloatForce |
divideBy(FloatLength v)
Calculate the division of FloatTorque and FloatLength, which results in a FloatForce scalar.
|
FloatDuration |
divideBy(FloatPower v)
Calculate the division of FloatTorque and FloatPower, which results in a FloatDuration scalar.
|
FloatVolume |
divideBy(FloatPressure v)
Calculate the division of FloatTorque and FloatPressure, which results in a FloatVolume scalar.
|
FloatDimensionless |
divideBy(FloatTorque v)
Calculate the division of FloatTorque and FloatTorque, which results in a FloatDimensionless scalar.
|
FloatPressure |
divideBy(FloatVolume v)
Calculate the division of FloatTorque and FloatVolume, which results in a FloatPressure scalar.
|
FloatTorque |
instantiateRel(float value,
TorqueUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
static FloatTorque |
interpolate(FloatTorque zero,
FloatTorque one,
float ratio)
Interpolate between two values.
|
static FloatTorque |
max(FloatTorque r1,
FloatTorque r2)
Return the maximum value of two relative scalars.
|
static FloatTorque |
max(FloatTorque r1,
FloatTorque r2,
FloatTorque... rn)
Return the maximum value of more than two relative scalars.
|
static FloatTorque |
min(FloatTorque r1,
FloatTorque r2)
Return the minimum value of two relative scalars.
|
static FloatTorque |
min(FloatTorque r1,
FloatTorque r2,
FloatTorque... rn)
Return the minimum value of more than two relative scalars.
|
FloatPower |
multiplyBy(FloatFrequency v)
Calculate the multiplication of FloatTorque and FloatFrequency, which results in a FloatPower scalar.
|
FloatForce |
multiplyBy(FloatLinearDensity v)
Calculate the multiplication of FloatTorque and FloatLinearDensity, which results in a FloatForce scalar.
|
static FloatTorque |
valueOf(String text)
Returns a FloatTorque representation of a textual representation of a value with a unit.
|
abs, ceil, divideBy, floor, minus, multiplyBy, neg, plus, rint, round
compareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toString
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit, stringOf, stringOfDefaultLocale, textualStringOf, textualStringOfDefaultLocale
byteValue, shortValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
DIV, MULT, POW
public static final FloatTorque ZERO
public static final FloatTorque NaN
public static final FloatTorque POSITIVE_INFINITY
public static final FloatTorque NEGATIVE_INFINITY
public static final FloatTorque POS_MAXVALUE
public static final FloatTorque NEG_MAXVALUE
public FloatTorque(float value, TorqueUnit unit)
value
- float valueunit
- unit for the float valuepublic FloatTorque(FloatTorque value)
value
- Scalar from which to construct this instancepublic FloatTorque(double value, TorqueUnit unit)
value
- double valueunit
- unit for the resulting float valuepublic final FloatTorque instantiateRel(float value, TorqueUnit unit)
instantiateRel
in class AbstractFloatScalarRel<TorqueUnit,FloatTorque>
value
- float; the float valueunit
- U; the unitpublic static final FloatTorque createSI(float value)
value
- float value in SI unitspublic static FloatTorque interpolate(FloatTorque zero, FloatTorque one, float ratio)
zero
- the low valueone
- the high valueratio
- the ratio between 0 and 1, inclusivepublic static FloatTorque max(FloatTorque r1, FloatTorque r2)
r1
- the first scalarr2
- the second scalarpublic static FloatTorque max(FloatTorque r1, FloatTorque r2, FloatTorque... rn)
r1
- the first scalarr2
- the second scalarrn
- the other scalarspublic static FloatTorque min(FloatTorque r1, FloatTorque r2)
r1
- the first scalarr2
- the second scalarpublic static FloatTorque min(FloatTorque r1, FloatTorque r2, FloatTorque... rn)
r1
- the first scalarr2
- the second scalarrn
- the other scalarspublic static FloatTorque valueOf(String text) throws IllegalArgumentException
text
- String; the textual representation to parse into a FloatTorqueIllegalArgumentException
- when the text cannot be parsedpublic final FloatDimensionless divideBy(FloatTorque v)
v
- FloatTorque scalarpublic final FloatLength divideBy(FloatForce v)
v
- FloatTorque scalarpublic final FloatForce divideBy(FloatLength v)
v
- FloatTorque scalarpublic final FloatForce multiplyBy(FloatLinearDensity v)
v
- FloatTorque scalarpublic final FloatPower divideBy(FloatDuration v)
v
- FloatTorque scalarpublic final FloatDuration divideBy(FloatPower v)
v
- FloatTorque scalarpublic final FloatPower multiplyBy(FloatFrequency v)
v
- FloatTorque scalarpublic final FloatPressure divideBy(FloatVolume v)
v
- FloatTorque scalarpublic final FloatVolume divideBy(FloatPressure v)
v
- FloatTorque scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.