|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsubscript.geom.AxisAngle
public class AxisAngle
Represents a 3D rotation. A companion class to Quaternion.
| Field Summary | |
|---|---|
double |
theta
|
double |
x
|
double |
y
|
double |
z
|
| Constructor Summary | |
|---|---|
AxisAngle(double x,
double y,
double z,
double theta)
Create from a vector (which will be normalized) and a rotation amount. |
|
AxisAngle(Matrix R)
Create from a 3x3 rotation matrix. |
|
AxisAngle(Quaternion q)
Create from a quaternion. |
|
| Method Summary | |
|---|---|
void |
normalize()
Ensure that the unit vector is actually a unit vector. |
void |
scaleRotation(double amt)
Scale the amount of rotation by the given factor. |
java.lang.String |
toString()
|
Matrix |
transformationMatrix()
Convert to a 3x3 rotation matrix. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double x
public double y
public double z
public double theta
| Constructor Detail |
|---|
public AxisAngle(Matrix R)
public AxisAngle(Quaternion q)
public AxisAngle(double x,
double y,
double z,
double theta)
| Method Detail |
|---|
public void scaleRotation(double amt)
public void normalize()
public Matrix transformationMatrix()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||