Methods
Modifier and Type |
Method and Description |
Quaternion |
add(float x) |
Quaternion |
div(Quaternion p) |
static Quaternion[] |
div(Quaternion[] data1,
Quaternion[] data2,
int nMax,
boolean isRelative) |
Quaternion |
divLeft(Quaternion p) |
float |
dot(Quaternion q) |
String |
draw(String prefix,
String id,
Point3f ptCenter,
float scale) |
private void |
fixQ(Quaternion qNew) |
Vector3f |
get3dProjection(Vector3f v3d) |
String |
getInfo() |
Matrix3f |
getMatrix() |
Vector3f |
getNormal() |
Vector3f |
getNormalDirected(Vector3f v0) |
static Quaternion |
getQuaternionFrame(Point3f center,
Tuple3f x,
Tuple3f xy) |
static Quaternion |
getQuaternionFrame(Vector3f vA,
Vector3f vB,
Vector3f vC,
boolean yBased) |
private static Vector3f |
getRawNormal(Quaternion q) |
float |
getTheta() |
Point4f |
getThetaDirected(Point4f axisAngle) |
float |
getThetaDirected(Vector3f vector) |
float |
getThetaRadians() |
Vector3f |
getVector(int i) |
private Vector3f |
getVector(int i,
float scale) |
Quaternion |
inv() |
Quaternion |
leftDifference(Quaternion q2) |
Quaternion |
mul(float x) |
Quaternion |
mul(Quaternion p) |
Quaternion |
negate() |
private static Quaternion |
newMean(Quaternion[] data,
Quaternion mean) |
Quaternion |
rightDifference(Quaternion q2) |
void |
set(AxisAngle4f a) |
void |
set(Matrix3f mat) |
private void |
set(Point4f pt)
{x y z w} --> {q1 q2 q3 q0} and factored
|
void |
set(Quaternion q) |
void |
set(Tuple3f pt,
float theta)
q = (cos(theta/2), sin(theta/2) * n)
|
private void |
setMatrix() |
void |
setRef(Quaternion qref) |
private static Quaternion |
simpleAverage(Quaternion[] ndata)
Just a starting point.
|
static Quaternion |
sphereMean(Quaternion[] data,
float[] retStddev,
float criterion) |
private static float |
stdDev(Quaternion[] data,
Quaternion mean) |
AxisAngle4f |
toAxisAngle4f() |
Point4f |
toPoint4f() |
String |
toString()
Java axisAngle / plane / Point4f format
all have the format {x y z w}
so we go with that here as well
|
Point3f |
transform(Point3f pt) |
void |
transform(Point3f pt,
Point3f ptNew) |
Vector3f |
transform(Vector3f v) |