Documentation
|
|
The C++ interface for rotate wrapper for affine transformations. More...
| array | rotate_coord (const array &vertices, const unsigned axis, const float theta) |
The C++ interface for rotate wrapper for affine transformations.
The rotation wrapper for affine transforms takes as input the vertex array as in the transform_coord function, an axis about which to rotate the coordinates (0 = x, 1 = y, 2 = z) and the angle in radian to rotate the coordinates.
The wrapper creates a transformation matrix and computes the homogeneous transform. The array of rotated coordinates is returned.
| array af::rotate_coord | ( | const array & | vertices, |
| const unsigned | axis, | ||
| const float | theta | ||
| ) |
| [in] | vertices | array of vertices |
| [in] | axis | coordinate axis to rotate about (0 = x, 1 = y, 2 = z) |
| [in] | theta | rotation angle in radians |
theta about the axis