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) |
Similar to Compute_Offcenter_Rotation, but operates on double-precision data. More... | |
void Compute_Offcenter_Rotation | ( | double | alpha, |
double | beta, | ||
double | theta, | ||
double | x, | ||
double | y, | ||
double | z, | ||
float * | out_matrix | ||
) |
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. |
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).
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.
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. |