|
Returns the matrix which can be used to rotate about a point" c6 T$ @! J- [5 u
$ d8 |) a( H/ A( n+ GEnvironment: Internal and External% a* l, ] o) D9 q& T5 f8 H
See Also: 9 n# v( d& G/ F
$ ]" c5 ]8 w; W4 Z, \; \
History: Originally released in V16.0
, {) ]0 y. N+ S. l: l$ S( |; F7 T******************************************************************************/8 n l% C% `9 h6 b0 B
extern UFUNEXPORT int UF_MTX4_rotation(1 x8 \4 Q/ Q; y1 m$ y( M& q
2 y9 [2 O; A- q3 r0 b const double rotation_point[3], /* <I>2 `" u9 n1 h7 J3 K% }+ o4 x
Point about which the rotation is to
5 U/ q* ~ c: o6 H/ d+ n be performed., E! B* t+ E" o; D1 Z( u Q% k% T
*/ 0 D3 t! d# E1 r) a& S4 z+ i
const double rotation_axis[3], /* <I>
2 L: B J! ?( X$ }2 c2 S9 y& } Axis about which rotation to occur./ v8 j* k. W/ z' X7 ?
*/
5 v0 x$ Z% C3 v& q D' O3 l const double angle, /* <I>
) T$ F) Q# j# F/ r rotation angle in degrees
) t6 d) z, b4 N+ F( u7 H* e */$ \9 f- X" f- o, b2 W8 f6 M- S
double mtx[16] /* <O>/ R' V& T- h" B4 c% Z4 M
returned matrix that can be used to
4 {9 ^8 J) _) W# f tranform objects
% j2 \: ~ }6 z @$ ~( h6 P' R6 @ */
( W, [8 d' |8 w); |
|