public class TransformationUtils extends Object
Constructor and Description |
---|
TransformationUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areVectorsEqual(Hep3Vector a,
Hep3Vector b,
double thresh) |
static Hep3Vector |
getCardanAngles(Hep3Vector u,
Hep3Vector v,
Hep3Vector u_prime,
Hep3Vector v_prime)
Extract the Cardan angles that describe a passive XYZ order rotation taking two unit vectors into two new ones.
|
static Hep3Vector |
getCardanAngles(Hep3Vector u,
Hep3Vector v,
Hep3Vector w,
Hep3Vector u_prime,
Hep3Vector v_prime,
Hep3Vector w_prime)
Extract the Cardan angles that describe a passive XYZ order rotation taking a set of three unit vectors into three new one.
|
static Hep3Vector |
getRotationDisplacement(Hep3Vector originOfRotation,
Hep3Vector point,
Hep3Vector rotationAngles)
Find the displacement of a point when rotating around an arbitrary position.
|
static void |
printMatrix(double[][] mat)
Print matrix to stdout.
|
public static Hep3Vector getCardanAngles(Hep3Vector u, Hep3Vector v, Hep3Vector u_prime, Hep3Vector v_prime)
u
- - input unit vectorv
- - input unit vectoru_prime
- - result of rotation applied to @param uv_prime
- - result of rotation applied to @param vpublic static boolean areVectorsEqual(Hep3Vector a, Hep3Vector b, double thresh)
public static Hep3Vector getCardanAngles(Hep3Vector u, Hep3Vector v, Hep3Vector w, Hep3Vector u_prime, Hep3Vector v_prime, Hep3Vector w_prime)
u
- - input unit vectorv
- - input unit vectorw
- - input unit vectoru_prime
- - result of rotation applied to @param uv_prime
- - result of rotation applied to @param vw_prime
- - result of rotation applied to @param wpublic static void printMatrix(double[][] mat)
mat
- public static Hep3Vector getRotationDisplacement(Hep3Vector originOfRotation, Hep3Vector point, Hep3Vector rotationAngles)
originOfRotation
- point
- to rotaterotationAngles
- - Cardan angles describing a passive XYZ order rotationCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.