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-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, 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
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.
|
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
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; float valueunit
- TorqueUnit; unit for the float valuepublic FloatTorque(FloatTorque value)
value
- FloatTorque; Scalar from which to construct this instancepublic FloatTorque(double value, TorqueUnit unit)
value
- double; double valueunit
- TorqueUnit; 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; float value in SI unitspublic static FloatTorque interpolate(FloatTorque zero, FloatTorque one, float ratio)
zero
- FloatTorque; the low valueone
- FloatTorque; the high valueratio
- float; the ratio between 0 and 1, inclusivepublic static FloatTorque max(FloatTorque r1, FloatTorque r2)
r1
- FloatTorque; the first scalarr2
- FloatTorque; the second scalarpublic static FloatTorque max(FloatTorque r1, FloatTorque r2, FloatTorque... rn)
r1
- FloatTorque; the first scalarr2
- FloatTorque; the second scalarrn
- FloatTorque...; the other scalarspublic static FloatTorque min(FloatTorque r1, FloatTorque r2)
r1
- FloatTorque; the first scalarr2
- FloatTorque; the second scalarpublic static FloatTorque min(FloatTorque r1, FloatTorque r2, FloatTorque... rn)
r1
- FloatTorque; the first scalarr2
- FloatTorque; the second scalarrn
- FloatTorque...; the other scalarspublic final FloatDimensionless divideBy(FloatTorque v)
v
- FloatTorque; FloatTorque scalarpublic final FloatLength divideBy(FloatForce v)
v
- FloatForce; FloatTorque scalarpublic final FloatForce divideBy(FloatLength v)
v
- FloatLength; FloatTorque scalarpublic final FloatForce multiplyBy(FloatLinearDensity v)
v
- FloatLinearDensity; FloatTorque scalarpublic final FloatPower divideBy(FloatDuration v)
v
- FloatDuration; FloatTorque scalarpublic final FloatDuration divideBy(FloatPower v)
v
- FloatPower; FloatTorque scalarpublic final FloatPower multiplyBy(FloatFrequency v)
v
- FloatFrequency; FloatTorque scalarpublic final FloatPressure divideBy(FloatVolume v)
v
- FloatVolume; FloatTorque scalarpublic final FloatVolume divideBy(FloatPressure v)
v
- FloatPressure; FloatTorque scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.