<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MDL里的角度问题</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/bdn-mdl-c-c/21424/mdl</link><description>[转载Bentley中文知识库原贴] Johnson：有一条直线，可能是任意一种角度（东南-西北方向、东北-西南方向等等），想要在这条直线的中点位置处放置一个文本，文本要与直线平行，且字头的大体朝向要向上，而且整个文本要在直线前进方向的右手方向那一侧，如何通过RotMatrix那些函数来实现啊，一直搞不清除mdlRMatrix_xxx、mdlTMatrix_xxx那些函数，头疼啊， 
 
也就是说如何通过给定直线的2个顶点坐标，如何获取mdlText_create函数中的RotMatrix参数</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: MDL里的角度问题</title><link>https://communities.bentley.com/thread/46994?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2009 11:34:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a2f02250-8cb4-4f8a-8ebd-8deecf8818c2</guid><dc:creator>Sophie Qingwen</dc:creator><description>[转载Bentley中文知识库原贴] MicroStation迷：对于二维来说，这个RotMatrix非常容易获得，就是用mdlRMatrix_fromAngle，注意，angle要用弧度值而不是角度值。所以，只要你计算清楚你的直线端的角度就能轻易获得这个RotMatrix。&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>