public class AngleSolid extends AbstractDoubleScalarRel<AngleSolidUnit,AngleSolid>
DoubleScalar.Rel<AngleSolidUnit> value = new DoubleScalar.Rel<AngleSolidUnit>(100.0, AngleSolidUnit.SI);we can now write:
AngleSolid value = new AngleSolid(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 AngleSolid |
NaN
constant with value NaN.
|
static AngleSolid |
NEG_MAXVALUE
constant with value -MAX_VALUE.
|
static AngleSolid |
NEGATIVE_INFINITY
constant with value NEGATIVE_INFINITY.
|
static AngleSolid |
POS_MAXVALUE
constant with value MAX_VALUE.
|
static AngleSolid |
POSITIVE_INFINITY
constant with value POSITIVE_INFINITY.
|
static AngleSolid |
ZERO
constant with value zero.
|
siNUMBER_PATTERN| Constructor and Description |
|---|
AngleSolid(AngleSolid value)
Construct AngleSolid scalar.
|
AngleSolid(double value,
AngleSolidUnit unit)
Construct AngleSolid scalar.
|
| Modifier and Type | Method and Description |
|---|---|
static AngleSolid |
createSI(double value)
Construct AngleSolid scalar.
|
Dimensionless |
divideBy(AngleSolid v)
Calculate the division of AngleSolid and AngleSolid, which results in a Dimensionless scalar.
|
AngleSolid |
instantiateRel(double value,
AngleSolidUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
static AngleSolid |
interpolate(AngleSolid zero,
AngleSolid one,
double ratio)
Interpolate between two values.
|
static AngleSolid |
max(AngleSolid r1,
AngleSolid r2)
Return the maximum value of two relative scalars.
|
static AngleSolid |
max(AngleSolid r1,
AngleSolid r2,
AngleSolid... rn)
Return the maximum value of more than two relative scalars.
|
static AngleSolid |
min(AngleSolid r1,
AngleSolid r2)
Return the minimum value of two relative scalars.
|
static AngleSolid |
min(AngleSolid r1,
AngleSolid r2,
AngleSolid... rn)
Return the minimum value of more than two relative scalars.
|
static AngleSolid |
valueOf(String text)
Returns a AngleSolid representation of a textual representation of a value with a unit.
|
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, setDisplayUnit, stringOf, stringOfDefaultLocale, textualStringOf, textualStringOfDefaultLocalebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic static final AngleSolid ZERO
public static final AngleSolid NaN
public static final AngleSolid POSITIVE_INFINITY
public static final AngleSolid NEGATIVE_INFINITY
public static final AngleSolid POS_MAXVALUE
public static final AngleSolid NEG_MAXVALUE
public AngleSolid(double value,
AngleSolidUnit unit)
value - double valueunit - unit for the double valuepublic AngleSolid(AngleSolid value)
value - Scalar from which to construct this instancepublic final AngleSolid instantiateRel(double value, AngleSolidUnit unit)
instantiateRel in class AbstractDoubleScalarRel<AngleSolidUnit,AngleSolid>value - double; the double valueunit - U; the unitpublic static final AngleSolid createSI(double value)
value - double value in SI unitspublic static AngleSolid interpolate(AngleSolid zero, AngleSolid one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic static AngleSolid max(AngleSolid r1, AngleSolid r2)
r1 - the first scalarr2 - the second scalarpublic static AngleSolid max(AngleSolid r1, AngleSolid r2, AngleSolid... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic static AngleSolid min(AngleSolid r1, AngleSolid r2)
r1 - the first scalarr2 - the second scalarpublic static AngleSolid min(AngleSolid r1, AngleSolid r2, AngleSolid... rn)
r1 - the first scalarr2 - the second scalarrn - the other scalarspublic static AngleSolid valueOf(String text) throws IllegalArgumentException
text - String; the textual representation to parse into a AngleSolidIllegalArgumentException - when the text cannot be parsedpublic final Dimensionless divideBy(AngleSolid v)
v - AngleSolid scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.