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-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 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
NUMBER_PATTERN
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.
|
static FloatAngleSolid |
valueOf(String text)
Returns a FloatAngleSolid 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 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 valueunit
- unit for the float valuepublic FloatAngleSolid(FloatAngleSolid value)
value
- Scalar from which to construct this instancepublic FloatAngleSolid(double value, AngleSolidUnit unit)
value
- double valueunit
- 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 value in SI unitspublic static FloatAngleSolid interpolate(FloatAngleSolid zero, FloatAngleSolid one, float ratio)
zero
- the low valueone
- the high valueratio
- the ratio between 0 and 1, inclusivepublic static FloatAngleSolid max(FloatAngleSolid r1, FloatAngleSolid r2)
r1
- the first scalarr2
- the second scalarpublic static FloatAngleSolid max(FloatAngleSolid r1, FloatAngleSolid r2, FloatAngleSolid... rn)
r1
- the first scalarr2
- the second scalarrn
- the other scalarspublic static FloatAngleSolid min(FloatAngleSolid r1, FloatAngleSolid r2)
r1
- the first scalarr2
- the second scalarpublic static FloatAngleSolid min(FloatAngleSolid r1, FloatAngleSolid r2, FloatAngleSolid... rn)
r1
- the first scalarr2
- the second scalarrn
- the other scalarspublic static FloatAngleSolid valueOf(String text) throws IllegalArgumentException
text
- String; the textual representation to parse into a FloatAngleSolidIllegalArgumentException
- when the text cannot be parsedpublic final FloatDimensionless divideBy(FloatAngleSolid v)
v
- FloatAngleSolid scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.