Brief Index      Full Index      Events Index      I.M. Reference

Compute_Offcenter_Rotation

Functions

void Compute_Offcenter_Rotation (double alpha, double beta, double theta, double x, double y, double z, float *out_matrix)
void DCompute_Offcenter_Rotation (double alpha, double beta, double theta, double x, double y, double z, double *out_matrix)

Function Documentation

void Compute_Offcenter_Rotation ( double  alpha,
double  beta,
double  theta,
double  x,
double  y,
double  z,
float *  out_matrix 
)
Parameters:
alpha- Angle of rotation about the X axis.
beta- Angle of rotation about the Y axis.
theta- Angle of rotation about the Z axis.
x- X coordinate of the centroid of rotation
y- Y coordinate of the centroid of rotation
z- Z coordinate of the centroid of rotation
out_matrix- Output transformation matrix, returned to the caller.

DETAILS

Compute_Offcenter_Rotation() produces a matrix representing a rotation about an arbitrary center of rotation. This essentially consists of a translation of (-x,-y,-z) to the origin. The translation uses a rotation of alpha degrees about the X axis, a rotation of beta degrees about the Y, and a rotation of theta degrees about the Z. Then it does a translation back to (x, y, z).

NOTES

RESTRICTIONS

See also:
Compute_Offaxis_Rotation, Set_Modelling_Matrix
void DCompute_Offcenter_Rotation ( double  alpha,
double  beta,
double  theta,
double  x,
double  y,
double  z,
double *  out_matrix 
)

Similar to Compute_Offcenter_Rotation, but operates on double-precision data.

Parameters:
alpha- Angle of rotation about the X axis.
beta- Angle of rotation about the Y axis.
theta- Angle of rotation about the Z axis.
x- X coordinate of the centroid of rotation
y- Y coordinate of the centroid of rotation
z- Z coordinate of the centroid of rotation
out_matrix- Output transformation matrix, returned to the caller.

Brief Index      Full Index      Events Index      I.M. Reference