public class DQuaternion extends Quaternion implements java.io.Externalizable
Constructor and Description |
---|
DQuaternion() |
DQuaternion(double real,
double imag,
double jmag,
double kmag) |
Modifier and Type | Method and Description |
---|---|
Numeric |
add(java.lang.Object y,
int k)
Return this + k * obj.
|
static Quaternion |
cos(double x_re,
double x_im,
double x_jm,
double x_km) |
static Quaternion |
div(double x_re,
double x_im,
double x_jm,
double x_km,
double y_re,
double y_im,
double y_jm,
double y_km) |
Numeric |
div(java.lang.Object y) |
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.
|
boolean |
equals(java.lang.Object obj) |
static Quaternion |
exp(double x_re,
double x_im,
double x_jm,
double x_km) |
static double |
hypot3(double x,
double y,
double z) |
static double |
hypot4(double w,
double x,
double y,
double z) |
RealNum |
im()
The value of the imaginary component, as a RealNum.
|
boolean |
isExact() |
RealNum |
jm()
The value of the "j" component, as a RealNum.
|
RealNum |
km()
The value of the "k" component, as a RealNum.
|
static Quaternion |
log(double x_re,
double x_im,
double x_jm,
double x_km) |
Numeric |
mul(java.lang.Object y) |
Numeric |
neg() |
static Quaternion |
power(double x_re,
double x_im,
double x_jm,
double x_km,
double y_re,
double y_im,
double y_jm,
double y_km) |
RealNum |
re()
The value of the real component, as a RealNum.
|
void |
readExternal(java.io.ObjectInput in) |
static Quaternion |
sin(double x_re,
double x_im,
double x_jm,
double x_km) |
static Quaternion |
sqrt(double x_re,
double x_im,
double x_jm,
double x_km) |
static Quaternion |
tan(double x_re,
double x_im,
double x_jm,
double x_km) |
Quaternion |
toExact() |
java.lang.String |
toString() |
java.lang.String |
toString(int radix) |
void |
writeExternal(java.io.ObjectOutput out) |
abs, add, addReversed, angle, classifyFinite, colatitude, compare, compare, complexPart, conjugate, cos, divide, divReversed, doubleRealValue, equals, exp, isZero, jmMinusOne, jmOne, kmMinusOne, kmOne, log, longitude, longValue, make, make, mulReversed, neg, number, polar, polar, power, sin, sqrt, tan, times, toInexact, unitQuaternion, unitVector, vectorPart
add, compare, compareReversed, dimensions, divide, imValue, jmValue, kmValue, make, make, make, reValue, times, unit
public DQuaternion()
public DQuaternion(double real, double imag, double jmag, double kmag)
public RealNum re()
Quantity
public double doubleValue()
Quantity
doubleValue
in class Quaternion
public RealNum im()
Quantity
public double doubleImagValue()
Quantity
doubleImagValue
in class Quaternion
public RealNum jm()
Quantity
public double doubleJmagValue()
Quantity
doubleJmagValue
in class Quaternion
public RealNum km()
Quantity
public double doubleKmagValue()
Quantity
doubleKmagValue
in class Quaternion
public boolean isExact()
isExact
in class Quaternion
public Quaternion toExact()
toExact
in class Quaternion
public boolean equals(java.lang.Object obj)
equals
in class Quaternion
public java.lang.String toString(int radix)
toString
in class Quaternion
public final Numeric neg()
neg
in class Quaternion
public Numeric add(java.lang.Object y, int k)
Numeric
add
in class Quaternion
public Numeric mul(java.lang.Object y)
mul
in class Quaternion
public Numeric div(java.lang.Object y)
div
in class Quaternion
public static double hypot4(double w, double x, double y, double z)
public static double hypot3(double x, double y, double z)
public static Quaternion power(double x_re, double x_im, double x_jm, double x_km, double y_re, double y_im, double y_jm, double y_km)
public static Quaternion exp(double x_re, double x_im, double x_jm, double x_km)
public static Quaternion log(double x_re, double x_im, double x_jm, double x_km)
public static Quaternion div(double x_re, double x_im, double x_jm, double x_km, double y_re, double y_im, double y_jm, double y_km)
public static Quaternion sqrt(double x_re, double x_im, double x_jm, double x_km)
public static Quaternion sin(double x_re, double x_im, double x_jm, double x_km)
public static Quaternion cos(double x_re, double x_im, double x_jm, double x_km)
public static Quaternion tan(double x_re, double x_im, double x_jm, double x_km)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException