|
Returns the matrix which can be used to rotate about a point* d5 m( q7 E1 w T/ u
0 f& A0 ~+ h5 v
Environment: Internal and External
% ] z/ t, y/ H# a- M! [/ lSee Also: , B s9 @0 W& w; O. M0 x6 l
/ n- f/ S; N! d3 R- iHistory: Originally released in V16.04 U2 v* N( Y& C5 w) `6 N, V# W
******************************************************************************/
2 ]+ k# C ^# O+ P& Vextern UFUNEXPORT int UF_MTX4_rotation(
* {- X) X5 S9 t, `8 |5 t2 J& U/ k+ v$ Z% {3 l
const double rotation_point[3], /* <I>
$ J0 C& ^& {2 O: g Point about which the rotation is to
9 j2 b! a. M, q2 S: g' W* U be performed.! P* \; k& w4 v( ? R6 A, w; q2 f
*/
9 {% |, L: Y- o) } const double rotation_axis[3], /* <I>% Z" l6 v& [* p( h4 U
Axis about which rotation to occur.
3 r0 O6 S+ F; f, g; n5 C */
. j! ~1 t* z$ |9 O; [6 L const double angle, /* <I>
1 v( [, O! ~( U3 T rotation angle in degrees
6 A. u* d _; S0 s8 O% h: } */
' L$ n; Z0 g. q5 h, M3 @4 I- a8 M* G double mtx[16] /* <O>+ a; ?' `$ q3 F0 L
returned matrix that can be used to
6 u9 O, p" l8 s0 Z% X tranform objects * q. R3 I3 I$ t7 C5 R
*/
+ T8 j3 T3 |( I7 z/ ?+ Z/ B); |
|