public abstract class Q extends Vector.Doubles
rotate
3D Vectors.Vector.Derived, Vector.Doubles, Vector.GP, Vector.Ints, Vector.Slice, Vector.Strings, Vector.Weighted
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Constructor and Description |
---|
Q() |
Modifier and Type | Method and Description |
---|---|
Q |
asQ()
Return 'this' -- also see
Vector.asQ() . |
Vector |
asV3()
For 'this' Quaternion, (a,b,c,d), return the 3D Vector (b,c,d).
|
Q |
conjugate()
Return the conjugate, (a,-b,-c,-d), of
'this' Quaternion (a,b,c,d).
|
static Q |
double1(double a)
Return the Quaternion
|
static Q |
doubles(double[] abcd)
Given an array of doubles
|
static Q |
doubles(double a,
double b,
double c,
double d)
Return the Quaternion
|
double |
i()
The i-part, elt(1).x().
|
Q |
inverse()
|
double |
j()
The j-part, elt(2).x().
|
double |
k()
The k-part, elt(3).x().
|
static void |
main(java.lang.String[] argv)
main() allows Q to be (slightly) tested, in isolation.
|
int |
nElts()
Return 4.
|
Q |
times(Q q)
Multiply Quaternions 'this' and 'q'.
|
java.lang.String |
toString()
Show 'this' Quaternion as "(a±bi±cj±dk)".
|
double |
wt(int i)
Error: wt(i) is not a Quaternion operation.
|
double |
wts()
Error: wts() is not a Quaternion operation.
|
double |
x()
The "real" part, elt(0).x().
|
eltType, type
addMore, addMore, append, append, as_1xn, as_nx1, asDiagonal, asMatrix, asQrotn, bOp, closes, col, cols, combine, compareTo, constAoM, constNlAoM, constWt, csv, csv, delete, delete, dot, doubles, doubles, drop, drop, dropLast, elt, elt, elts, foldl, foldl, foldr, foldr, fromScannable, ints, ints, isRectangular, isSquare, map, match, merge, nCols, nearlySymmetric, nearlySymmetric, nElts, nlAoM, nlAoM, norm_Cts, norm, normalised, normalised1, normalised2, opens, repeat, rotate, rotate, rowLength, scaled, shape, singleton, slice, sorted, sorted, sorted, strings, sumSq, take, takeLast, times, toSeries, uniqueElts, unzip, unzip, uOp, values, weight, weight, weight, weightLike, weightLike, wtMedian, wtNlAoM, wtNlAoM, wts, zip, zip
AoM, elts, frth, fst, print, separator, snd, thrd
public double wt(int i)
public double i()
public double j()
public double k()
public Q times(Q q)
public Q conjugate()
public Q inverse()
public Vector asV3()
public Q asQ()
Vector.asQ()
.public java.lang.String toString()
toString
in class Value.Structured
public static Q doubles(double[] abcd)
public static Q doubles(double a, double b, double c, double d)
public static Q double1(double a)
public static void main(java.lang.String[] argv)