|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.Utility.Transform3D
public class Transform3D
A set of static methods for rotating and translating 3D vectors and points by Euler angles.
The rotation matrix is...
| [ | cos(phi)*cos(th)*cos(psi)-sin(phi)*sin(psi) | -sin(phi)*cos(th)*cos(psi)-cos(phi)*sin(psi) | sin(th)*cos(psi) | ] |
| [ | sin(phi)*cos(psi)+cos(phi)*cos(th)*sin(psi) | -sin(phi)*cos(th)*sin(psi)+cos(phi)*cos(psi) | sin(th)*sin(psi) | ] |
| [ | -cos(phi)*sin(th) | sin(th)*sin(phi) | cos(th) | ] |
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Company: National Institute of Standards and Technology
| Constructor Summary | |
|---|---|
Transform3D()
|
|
| Method Summary | |
|---|---|
static double[] |
rotate(double[] point,
double[] pivot,
double phi,
double theta,
double psi)
rotate - Rotate the specified point about the center point by the Euler angles specified. |
static double[] |
rotate(double[] vector,
double phi,
double th,
double psi)
rotate - Rotate the specified directional vector by the Euler angles phi, th, psi. |
static double[] |
translate(double[] point,
double[] distance,
boolean negate)
translate - Translate the specified point by the specified distance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transform3D()
| Method Detail |
|---|
public static double[] rotate(double[] vector,
double phi,
double th,
double psi)
vector - double[]phi - doubleth - doublepsi - double
public static double[] rotate(double[] point,
double[] pivot,
double phi,
double theta,
double psi)
point - double[] - The point to rotatepivot - double[] - The pivot pointphi - double - Initial rotation about ztheta - double - Second rotation about ypsi - double - Final rotation about z
public static double[] translate(double[] point,
double[] distance,
boolean negate)
point - double[] - The original pointdistance - double[] - The offsetnegate - - true to translate -distance or false to translate
+distance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||