public class Torque extends TypedDoubleScalarRel<TorqueUnit,Torque>
DoubleScalar.Rel<TorqueUnit> value = new DoubleScalar.Rel<TorqueUnit>(100.0, TorqueUnit.SI);we can now write:
Torque value = new Torque(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-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2016-05-28 14:25:52 +0200 (Sat, 28 May 2016) $, @version $Revision: 202 $, by $Author: averbraeck $,
initial version Sep 5, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>| Modifier and Type | Field and Description |
|---|---|
static Torque |
ZERO
constant with value zero.
|
si| Constructor and Description |
|---|
Torque(double value,
TorqueUnit unit)
Construct Torque scalar.
|
Torque(Torque value)
Construct Torque scalar.
|
| Modifier and Type | Method and Description |
|---|---|
Power |
divideBy(Duration v)
Calculate the division of Torque and Duration, which results in a Power scalar.
|
Length |
divideBy(Force v)
Calculate the division of Torque and Force, which results in a Length scalar.
|
Force |
divideBy(Length v)
Calculate the division of Torque and Length, which results in a Force scalar.
|
Duration |
divideBy(Power v)
Calculate the division of Torque and Power, which results in a Duration scalar.
|
Volume |
divideBy(Pressure v)
Calculate the division of Torque and Pressure, which results in a Volume scalar.
|
Dimensionless |
divideBy(Torque v)
Calculate the division of Torque and Torque, which results in a Dimensionless scalar.
|
Pressure |
divideBy(Volume v)
Calculate the division of Torque and Volume, which results in a Pressure scalar.
|
protected Torque |
instantiateTypeRel(double value,
TorqueUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
static Torque |
interpolate(Torque zero,
Torque one,
double ratio)
Interpolate between two values.
|
static Torque |
max(Torque r1,
Torque r2)
Return the maximum value of two relative scalars.
|
static Torque |
max(Torque r1,
Torque r2,
Torque... rn)
Return the maximum value of more than two relative scalars.
|
static Torque |
min(Torque r1,
Torque r2)
Return the minimum value of two relative scalars.
|
static Torque |
min(Torque r1,
Torque r2,
Torque... rn)
Return the minimum value of more than two relative scalars.
|
Power |
multiplyBy(Frequency v)
Calculate the multiplication of Torque and Frequency, which results in a Power scalar.
|
Force |
multiplyBy(LinearDensity v)
Calculate the multiplication of Torque and LinearDensity, which results in a Force scalar.
|
abs, ceil, divideBy, floor, minus, multiplyBy, plus, rint, roundcompareTo, 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, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic static final Torque ZERO
public Torque(double value,
TorqueUnit unit)
value - double valueunit - unit for the double valuepublic Torque(Torque value)
value - Scalar from which to construct this instanceprotected final Torque instantiateTypeRel(double value, TorqueUnit unit)
instantiateTypeRel in class TypedDoubleScalarRel<TorqueUnit,Torque>value - the double valueunit - the unitpublic static Torque interpolate(Torque zero, Torque one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic static Torque max(Torque r1, Torque r2)
r1 - the first scalarr2 - the second scalarpublic static Torque max(Torque r1, Torque r2, Torque... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic static Torque min(Torque r1, Torque r2)
r1 - the first scalarr2 - the second scalarpublic static Torque min(Torque r1, Torque r2, Torque... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic final Dimensionless divideBy(Torque v)
v - Torque scalarpublic final Length divideBy(Force v)
v - Torque scalarpublic final Force divideBy(Length v)
v - Torque scalarpublic final Force multiplyBy(LinearDensity v)
v - Torque scalarpublic final Power divideBy(Duration v)
v - Torque scalarpublic final Duration divideBy(Power v)
v - Torque scalarpublic final Power multiplyBy(Frequency v)
v - Torque scalarpublic final Pressure divideBy(Volume v)
v - Torque scalarCopyright © 2015–2016 Delft University of Technology. All rights reserved.