青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

青华模具培训学院
查看: 2661|回复: 0

[疑难] ug-api如何实现旋转坐标系和直线

[复制链接]
发表于 2008-4-17 14:36 | 显示全部楼层 |阅读模式
我想把当前坐标系按Z正向旋转30度,这需要用什么函数来实现,该如何定义?" l8 i' M8 Z0 C
我看了半天帮助也没看明白,请各位指点一下吧!~ 多谢!
发表于 2008-4-20 00:08 | 显示全部楼层
Returns the matrix which can be used to rotate about a point/ k! l; r+ Z7 J: Q. Q# h" v) ~" L( ?; D

+ ]# i& I( E  AEnvironment: Internal  and  External+ F# K5 j7 W% W- H
See Also: , s9 C& g  @: g# W5 X# }
2 u9 l2 e# S) }; A) i8 V0 ?
History: Originally released in V16.0" i$ P! _- F# |1 G: h
******************************************************************************/$ p4 M8 J  l# t2 B1 u  a& [2 P
extern UFUNEXPORT int UF_MTX4_rotation(3 |. V9 t  p! l4 D( Z& T3 f

" R) u  n% U  O( X4 K    const double   rotation_point[3],  /* <I>
1 l% w8 d& n  K0 }0 t: K$ M* k/ F. Z                                          Point about which the rotation is to, H# D2 h, [6 k+ ]. W4 }2 R
                                          be performed.
+ F1 [0 Q' K( Y0 |8 a3 x                                       */
/ E9 O4 O9 A9 D! D. E: \    const double   rotation_axis[3],   /* <I>
# r# Z: E$ A! t& R$ ~5 A6 t8 q                                          Axis about which rotation to occur.# u) S" d) E; i. I9 k: _$ S
                                       */  ) J; l) D4 a9 \5 M
    const double   angle,              /* <I>
; l( V. T3 s) i9 _+ s3 z2 I                                          rotation angle in degrees ) M" d' l: _0 n- U: ?* x
                                       */
& }2 t' O9 d% M; x( q          double   mtx[16]             /* <O>1 C/ C, B- O( B( i
                                       returned matrix that can be used to% z3 R" b+ e. A. _. ]" C
                                       tranform objects  
) a; y3 K- @1 E! ?( c! b                                       */
" s% I7 T. i3 c+ I- X) J);
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2024-5-10 18:23 , Processed in 0.052898 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表