Bentley Communities
Site
Search
User
Site
Search
User
Product Communities
Developers and Programming
MicroStation Programming
Cancel
MicroStation Programming
[Archived] 中国BDN社区 MDL/C/C++
MDL里的角度问题
Sign In
Replies
1 reply
Subscribers
5 subscribers
Views
2943 views
Users
0 members are here
MDL里的角度问题
Sophie Qingwen
over 14 years ago
[转载Bentley中文知识库原贴] Johnson:有一条直线,可能是任意一种角度(东南-西北方向、东北-西南方向等等),想要在这条直线的中点位置处放置一个文本,文本要与直线平行,且字头的大体朝向要向上,而且整个文本要在直线前进方向的右手方向那一侧,如何通过RotMatrix那些函数来实现啊,一直搞不清除mdlRMatrix_xxx、mdlTMatrix_xxx那些函数,头疼啊,
也就是说如何通过给定直线的2个顶点坐标,如何获取mdlText_create函数中的RotMatrix参数。
此主题相关图片如下problem.jpg:
4.jpg
View
Hide
Parents
Sophie Qingwen
Wed, Apr 8 2009 7:34 AM
[转载Bentley中文知识库原贴] MicroStation迷:对于二维来说,这个RotMatrix非常容易获得,就是用mdlRMatrix_fromAngle,注意,angle要用弧度值而不是角度值。所以,只要你计算清楚你的直线端的角度就能轻易获得这个RotMatrix。
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Reply
Sophie Qingwen
Wed, Apr 8 2009 7:34 AM
[转载Bentley中文知识库原贴] MicroStation迷:对于二维来说,这个RotMatrix非常容易获得,就是用mdlRMatrix_fromAngle,注意,angle要用弧度值而不是角度值。所以,只要你计算清楚你的直线端的角度就能轻易获得这个RotMatrix。
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Children
No Data