|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dolben.iiid.R3
public class R3
Cross product and rotation matrix generators for 3D.
The components of a 3D vector are { x, y, z }.
The generated matrices are "active rotations", i.e.,
applying one to a vector results in a vector rotated by the
given angle around the axis in the original coordinate system.
Constructor Summary | |
---|---|
R3()
|
Method Summary | |
---|---|
static double[] |
cross(double[] u,
double[] v)
Computes the cross product of two 3D vectors |
static double[][] |
rotationX(double theta)
Generates a 3D matix for a rotation by an angle around the x axis. |
static double[][] |
rotationY(double theta)
Generates a 3D matix for a rotation by an angle around the y axis. |
static double[][] |
rotationZ(double theta)
Generates a 3D matix for a rotation by an angle around the z axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public R3()
Method Detail |
---|
public static double[] cross(double[] u, double[] v)
u
- one vectorv
- another vector
public static double[][] rotationX(double theta)
theta
- an angle
public static double[][] rotationY(double theta)
theta
- an angle
public static double[][] rotationZ(double theta)
theta
- an angle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |