public abstract class Quantity extends Numeric
| Constructor and Description |
|---|
Quantity() |
| Modifier and Type | Method and Description |
|---|---|
Numeric |
abs() |
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj.
|
static Quantity |
add(Quantity x,
Quantity y,
int k) |
Numeric |
addReversed(Numeric x,
int k)
Calculate x+k&this.
|
int |
compare(java.lang.Object obj)
Return an integer for which of
this or obj is larger. |
static int |
compare(Quantity x,
Quantity y) |
int |
compareReversed(Numeric x) |
Dimensions |
dimensions() |
Numeric |
div(java.lang.Object y) |
static Quantity |
divide(Quantity x,
Quantity y) |
Numeric |
divReversed(Numeric x) |
double |
doubleImagValue()
The value of the imaginary component, as a double.
|
double |
doubleJmagValue()
The value of the "j" component, as a double.
|
double |
doubleKmagValue()
The value of the "k" component, as a double.
|
double |
doubleValue()
The value of the real component, as a double.
|
RealNum |
im()
The value of the imaginary component, as a RealNum.
|
double |
imValue()
The value of the imaginary component, as a double.
|
RealNum |
jm()
The value of the "j" component, as a RealNum.
|
double |
jmValue()
The value of the "j" component, as a double.
|
RealNum |
km()
The value of the "k" component, as a RealNum.
|
double |
kmValue()
The value of the "k" component, as a double.
|
static Quantity |
make(double re,
double im,
double jm,
double km,
Unit unit) |
static Quantity |
make(Quaternion x,
Unit u) |
static Quantity |
make(RealNum re,
RealNum im,
RealNum jm,
RealNum km,
Unit unit) |
Numeric |
mul(java.lang.Object y) |
Numeric |
mulReversed(Numeric x) |
Numeric |
neg() |
abstract Quaternion |
number() |
RealNum |
re()
The value of the real component, as a RealNum.
|
double |
reValue()
The value of the real component, as a double.
|
static Quantity |
times(Quantity x,
Quantity y) |
java.lang.String |
toString(int radix) |
Unit |
unit() |
public Unit unit()
public Dimensions dimensions()
public abstract Quaternion number()
public RealNum re()
public RealNum im()
public RealNum jm()
public RealNum km()
public final double reValue()
public final double imValue()
public final double jmValue()
public final double kmValue()
public double doubleValue()
doubleValue in class java.lang.Numberpublic double doubleImagValue()
public double doubleJmagValue()
public double doubleKmagValue()
public static Quantity make(Quaternion x, Unit u)
public int compare(java.lang.Object obj)
Numericthis or obj is larger.
Return 1 if this>obj; 0 if this==obj;
-1 if this<obj;
-2 if this!=obj otherwise (for example if either is NaN);
-3 if not comparable (incompatible types).public int compareReversed(Numeric x)
compareReversed in class Numericpublic Numeric add(java.lang.Object y, int k)
Numericpublic Numeric addReversed(Numeric x, int k)
NumericaddReversed in class Numericpublic Numeric mulReversed(Numeric x)
mulReversed in class Numericpublic Numeric divReversed(Numeric x)
divReversed in class Numeric