public class FloatArea extends TypedFloatScalarRel<AreaUnit,FloatArea>
FloatScalar.Rel<AreaUnit> value = new FloatScalar.Rel<AreaUnit>(100.0, AreaUnit.SI);we can now write:
FloatArea value = new FloatArea(100.0, AreaUnit.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
FloatScalar.Abs<U extends Unit<U>>, FloatScalar.Rel<U extends Unit<U>>| Modifier and Type | Field and Description |
|---|---|
static FloatArea |
ZERO
constant with value zero.
|
si| Constructor and Description |
|---|
FloatArea(double value,
AreaUnit unit)
Construct FloatArea scalar using a double value.
|
FloatArea(FloatArea value)
Construct FloatArea scalar.
|
FloatArea(float value,
AreaUnit unit)
Construct FloatArea scalar.
|
| Modifier and Type | Method and Description |
|---|---|
FloatDimensionless |
divideBy(FloatArea v)
Calculate the division of FloatArea and FloatArea, which results in a FloatDimensionless scalar.
|
FloatLength |
divideBy(FloatLength v)
Calculate the division of FloatArea and FloatLength, which results in a FloatLength scalar.
|
FloatVolume |
divideBy(FloatLinearDensity v)
Calculate the division of FloatArea and FloatLinearDensity, which results in a FloatVolume scalar.
|
FloatLinearDensity |
divideBy(FloatVolume v)
Calculate the division of FloatArea and FloatVolume, which results in a FloatLinearDensity scalar.
|
protected FloatArea |
instantiateTypeRel(float value,
AreaUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
static FloatArea |
interpolate(FloatArea zero,
FloatArea one,
float ratio)
Interpolate between two values.
|
static FloatArea |
max(FloatArea r1,
FloatArea r2)
Return the maximum value of two relative scalars.
|
static FloatArea |
max(FloatArea r1,
FloatArea r2,
FloatArea... rn)
Return the maximum value of more than two relative scalars.
|
static FloatArea |
min(FloatArea r1,
FloatArea r2)
Return the minimum value of two relative scalars.
|
static FloatArea |
min(FloatArea r1,
FloatArea r2,
FloatArea... rn)
Return the minimum value of more than two relative scalars.
|
FloatVolume |
multiplyBy(FloatLength v)
Calculate the multiplication of FloatArea and FloatLength, which results in a FloatVolume scalar.
|
FloatLength |
multiplyBy(FloatLinearDensity v)
Calculate the multiplication of FloatArea and FloatLinearDensity, which results in a FloatLength scalar.
|
FloatMoney |
multiplyBy(FloatMoneyPerArea v)
Calculate the multiplication of FloatArea and FloatMoneyPerArea, which results in a FloatMoney scalar.
|
FloatForce |
multiplyBy(FloatPressure v)
Calculate the multiplication of FloatArea and FloatPressure, which results in a FloatForce scalar.
|
FloatFlowVolume |
multiplyBy(FloatSpeed v)
Calculate the multiplication of FloatArea and FloatSpeed, which results in a FloatFlowVolume 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 FloatArea ZERO
public FloatArea(float value,
AreaUnit unit)
value - float valueunit - unit for the float valuepublic FloatArea(FloatArea value)
value - Scalar from which to construct this instancepublic FloatArea(double value,
AreaUnit unit)
value - double valueunit - unit for the resulting float valueprotected final FloatArea instantiateTypeRel(float value, AreaUnit unit)
instantiateTypeRel in class TypedFloatScalarRel<AreaUnit,FloatArea>value - the float valueunit - the unitpublic static FloatArea interpolate(FloatArea zero, FloatArea one, float ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic static FloatArea max(FloatArea r1, FloatArea r2)
r1 - the first scalarr2 - the second scalarpublic static FloatArea max(FloatArea r1, FloatArea r2, FloatArea... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic static FloatArea min(FloatArea r1, FloatArea r2)
r1 - the first scalarr2 - the second scalarpublic static FloatArea min(FloatArea r1, FloatArea r2, FloatArea... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic final FloatDimensionless divideBy(FloatArea v)
v - FloatArea scalarpublic final FloatVolume multiplyBy(FloatLength v)
v - FloatArea scalarpublic final FloatVolume divideBy(FloatLinearDensity v)
v - FloatArea scalarpublic final FloatLinearDensity divideBy(FloatVolume v)
v - FloatArea scalarpublic final FloatLength divideBy(FloatLength v)
v - FloatArea scalarpublic final FloatLength multiplyBy(FloatLinearDensity v)
v - FloatArea scalarpublic final FloatFlowVolume multiplyBy(FloatSpeed v)
v - FloatArea scalarpublic final FloatForce multiplyBy(FloatPressure v)
v - FloatArea scalarpublic final FloatMoney multiplyBy(FloatMoneyPerArea v)
v - FloatArea scalarCopyright © 2015–2016 Delft University of Technology. All rights reserved.