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-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 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.
|
si
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.
|
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
byteValue, shortValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
DIV, MULT, POW
public 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; double valueunit
- AngleSolidUnit; unit for the double valuepublic AngleSolid(AngleSolid value)
value
- AngleSolid; 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; double value in SI unitspublic static AngleSolid interpolate(AngleSolid zero, AngleSolid one, double ratio)
zero
- AngleSolid; the low valueone
- AngleSolid; the high valueratio
- double; the ratio between 0 and 1, inclusivepublic static AngleSolid max(AngleSolid r1, AngleSolid r2)
r1
- AngleSolid; the first scalarr2
- AngleSolid; the second scalarpublic static AngleSolid max(AngleSolid r1, AngleSolid r2, AngleSolid... rn)
r1
- AngleSolid; the first scalarr2
- AngleSolid; the second scalarrn
- AngleSolid...; the other scalarspublic static AngleSolid min(AngleSolid r1, AngleSolid r2)
r1
- AngleSolid; the first scalarr2
- AngleSolid; the second scalarpublic static AngleSolid min(AngleSolid r1, AngleSolid r2, AngleSolid... rn)
r1
- AngleSolid; the first scalarr2
- AngleSolid; the second scalarrn
- AngleSolid...; the other scalarspublic final Dimensionless divideBy(AngleSolid v)
v
- AngleSolid; AngleSolid scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.