public class FloatAngleSolid extends AbstractFloatScalarRel<AngleSolidUnit,FloatAngleSolid>
FloatScalar.Rel<AngleSolidUnit> value = new FloatScalar.Rel<AngleSolidUnit>(100.0, AngleSolidUnit.SI);we can now write:
FloatAngleSolid value = new FloatAngleSolid(100.0, AngleSolidUnit.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 FloatAngleSolid |
NaN
constant with value NaN.
|
static FloatAngleSolid |
NEG_MAXVALUE
constant with value -MAX_VALUE.
|
static FloatAngleSolid |
NEGATIVE_INFINITY
constant with value NEGATIVE_INFINITY.
|
static FloatAngleSolid |
POS_MAXVALUE
constant with value MAX_VALUE.
|
static FloatAngleSolid |
POSITIVE_INFINITY
constant with value POSITIVE_INFINITY.
|
static FloatAngleSolid |
ZERO
constant with value zero.
|
si| Constructor and Description |
|---|
FloatAngleSolid(double value,
AngleSolidUnit unit)
Construct FloatAngleSolid scalar using a double value.
|
FloatAngleSolid(FloatAngleSolid value)
Construct FloatAngleSolid scalar.
|
FloatAngleSolid(float value,
AngleSolidUnit unit)
Construct FloatAngleSolid scalar.
|
| Modifier and Type | Method and Description |
|---|---|
static FloatAngleSolid |
createSI(float value)
Construct FloatAngleSolid scalar.
|
FloatDimensionless |
divideBy(FloatAngleSolid v)
Calculate the division of FloatAngleSolid and FloatAngleSolid, which results in a FloatDimensionless scalar.
|
FloatAngleSolid |
instantiateRel(float value,
AngleSolidUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
static FloatAngleSolid |
interpolate(FloatAngleSolid zero,
FloatAngleSolid one,
float ratio)
Interpolate between two values.
|
static FloatAngleSolid |
max(FloatAngleSolid r1,
FloatAngleSolid r2)
Return the maximum value of two relative scalars.
|
static FloatAngleSolid |
max(FloatAngleSolid r1,
FloatAngleSolid r2,
FloatAngleSolid... rn)
Return the maximum value of more than two relative scalars.
|
static FloatAngleSolid |
min(FloatAngleSolid r1,
FloatAngleSolid r2)
Return the minimum value of two relative scalars.
|
static FloatAngleSolid |
min(FloatAngleSolid r1,
FloatAngleSolid r2,
FloatAngleSolid... rn)
Return the minimum value of more than two relative scalars.
|
abs, ceil, divideBy, floor, minus, multiplyBy, neg, plus, rint, roundcompareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitbyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic static final FloatAngleSolid ZERO
public static final FloatAngleSolid NaN
public static final FloatAngleSolid POSITIVE_INFINITY
public static final FloatAngleSolid NEGATIVE_INFINITY
public static final FloatAngleSolid POS_MAXVALUE
public static final FloatAngleSolid NEG_MAXVALUE
public FloatAngleSolid(float value,
AngleSolidUnit unit)
value - float; float valueunit - AngleSolidUnit; unit for the float valuepublic FloatAngleSolid(FloatAngleSolid value)
value - FloatAngleSolid; Scalar from which to construct this instancepublic FloatAngleSolid(double value,
AngleSolidUnit unit)
value - double; double valueunit - AngleSolidUnit; unit for the resulting float valuepublic final FloatAngleSolid instantiateRel(float value, AngleSolidUnit unit)
instantiateRel in class AbstractFloatScalarRel<AngleSolidUnit,FloatAngleSolid>value - float; the float valueunit - U; the unitpublic static final FloatAngleSolid createSI(float value)
value - float; float value in SI unitspublic static FloatAngleSolid interpolate(FloatAngleSolid zero, FloatAngleSolid one, float ratio)
zero - FloatAngleSolid; the low valueone - FloatAngleSolid; the high valueratio - float; the ratio between 0 and 1, inclusivepublic static FloatAngleSolid max(FloatAngleSolid r1, FloatAngleSolid r2)
r1 - FloatAngleSolid; the first scalarr2 - FloatAngleSolid; the second scalarpublic static FloatAngleSolid max(FloatAngleSolid r1, FloatAngleSolid r2, FloatAngleSolid... rn)
r1 - FloatAngleSolid; the first scalarr2 - FloatAngleSolid; the second scalarrn - FloatAngleSolid...; the other scalarspublic static FloatAngleSolid min(FloatAngleSolid r1, FloatAngleSolid r2)
r1 - FloatAngleSolid; the first scalarr2 - FloatAngleSolid; the second scalarpublic static FloatAngleSolid min(FloatAngleSolid r1, FloatAngleSolid r2, FloatAngleSolid... rn)
r1 - FloatAngleSolid; the first scalarr2 - FloatAngleSolid; the second scalarrn - FloatAngleSolid...; the other scalarspublic final FloatDimensionless divideBy(FloatAngleSolid v)
v - FloatAngleSolid; FloatAngleSolid scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.