public abstract class Quaternion extends Quantity
Constructor and Description |
---|
Quaternion() |
Modifier and Type | Method and Description |
---|---|
Numeric |
abs() |
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj.
|
static Quaternion |
add(Quaternion x,
Quaternion y,
int k) |
Numeric |
addReversed(Numeric x,
int k)
Calculate
x+k&this . |
RealNum |
angle() |
int |
classifyFinite()
Check if value is finite, infinite, or NaN.
|
RealNum |
colatitude() |
int |
compare(java.lang.Object obj)
Return an integer for which of
this or obj is larger. |
static int |
compare(Quaternion x,
Quaternion y) |
Complex |
complexPart() |
Quaternion |
conjugate() |
Quaternion |
cos() |
Numeric |
div(java.lang.Object y) |
static Quaternion |
divide(Quaternion x,
Quaternion 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 |
doubleRealValue() |
double |
doubleValue()
The value of the real component, as a double.
|
boolean |
equals(java.lang.Object obj) |
static boolean |
equals(Quaternion x,
Quaternion y) |
Quaternion |
exp() |
boolean |
isExact() |
boolean |
isZero() |
static CQuaternion |
jmMinusOne() |
static CQuaternion |
jmOne() |
static CQuaternion |
kmMinusOne() |
static CQuaternion |
kmOne() |
Quaternion |
log() |
RealNum |
longitude() |
long |
longValue() |
static Quaternion |
make(double re,
double im,
double jm,
double km) |
static Quaternion |
make(RealNum re,
RealNum im,
RealNum jm,
RealNum km) |
Numeric |
mul(java.lang.Object y) |
Numeric |
mulReversed(Numeric x) |
Numeric |
neg() |
static Quaternion |
neg(Quaternion x) |
Quaternion |
number() |
static Quaternion |
polar(double r,
double t,
double u,
double v) |
static Quaternion |
polar(RealNum r,
RealNum t,
RealNum u,
RealNum v) |
static Quaternion |
power(Quaternion x,
Quaternion y) |
Quaternion |
sin() |
Quaternion |
sqrt() |
Quaternion |
tan() |
static Quaternion |
times(Quaternion x,
Quaternion y) |
Quaternion |
toExact() |
Quaternion |
toInexact() |
java.lang.String |
toString(int radix) |
Quaternion |
unitQuaternion() |
Quaternion |
unitVector() |
Quaternion |
vectorPart() |
add, compare, compareReversed, dimensions, divide, im, imValue, jm, jmValue, km, kmValue, make, make, make, re, reValue, times, unit
public Quaternion number()
public int classifyFinite()
public Quaternion toExact()
public Quaternion toInexact()
public static CQuaternion jmOne()
public static CQuaternion jmMinusOne()
public static CQuaternion kmOne()
public static CQuaternion kmMinusOne()
public double doubleValue()
Quantity
doubleValue
in class Quantity
public double doubleImagValue()
Quantity
doubleImagValue
in class Quantity
public double doubleJmagValue()
Quantity
doubleJmagValue
in class Quantity
public double doubleKmagValue()
Quantity
doubleKmagValue
in class Quantity
public final double doubleRealValue()
public Complex complexPart()
public Quaternion vectorPart()
public Quaternion unitVector()
public Quaternion unitQuaternion()
public static Quaternion make(RealNum re, RealNum im, RealNum jm, RealNum km)
public static Quaternion make(double re, double im, double jm, double km)
public static Quaternion polar(double r, double t, double u, double v)
public static Quaternion polar(RealNum r, RealNum t, RealNum u, RealNum v)
public static Quaternion power(Quaternion x, Quaternion y)
public RealNum angle()
public RealNum colatitude()
public RealNum longitude()
public Quaternion conjugate()
public static boolean equals(Quaternion x, Quaternion y)
public static int compare(Quaternion x, Quaternion y)
public int compare(java.lang.Object obj)
Numeric
this
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 static Quaternion neg(Quaternion x)
public static Quaternion add(Quaternion x, Quaternion y, int k)
public Numeric add(java.lang.Object y, int k)
Numeric
public Numeric addReversed(Numeric x, int k)
Numeric
x+k&this
.addReversed
in class Quantity
public static Quaternion times(Quaternion x, Quaternion y)
public Numeric mulReversed(Numeric x)
mulReversed
in class Quantity
public static Quaternion divide(Quaternion x, Quaternion y)
public Numeric divReversed(Numeric x)
divReversed
in class Quantity
public Quaternion exp()
public Quaternion log()
public Quaternion sqrt()
public Quaternion sin()
public Quaternion cos()
public Quaternion tan()