Computes the 4x4 matrix of the rotation around the x, y, or z axis.
IppStatus ippmRotationX_m4_32f (Ipp32f angle, Ipp32f* pDst);
IppStatus ippmRotationY_m4_32f (Ipp32f angle, Ipp32f* pDst);
IppStatus ippmRotationZ_m4_32f (Ipp32f angle, Ipp32f* pDst);
The functions ippmRotationX_m4_32f, ippmRotationY_m4_32f, and ippmRotationZ_m4_32f are declared in the ippm.h file. These functions compute the 4x4 rotation matrix for the given angle, as follows:
For the x axis,
| 1 0 0 0 |
dst = | 0 cos(angle) sin(angle) 0 |
| 0 -sin(angle) cos(angle) 0 |
| 0 0 0 1 |
For the y axis,
| cos(angle) 0 -sin(angle) 0 |
dst = | 0 1 0 0 |
| sin(angle) 0 cos(angle) 0 |
| 0 0 0 1 |
For the z axis,
| cos(angle) sin(angle) 0 0 |
dst = | -sin(angle) cos(angle) 0 0 |
| 0 0 1 0 |
| 0 0 0 1 |
The ippmRotationX_m4_32f, ippmRotationY_m4_32f, and ippmRotationZ_m4_32f functions compute the matrix for the rotation around the x, y, and z axes, respectively.
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.