高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】ransformation Matrices
transformation matrices
transformation matrices
i am using the odamdiapp code in an attempt to add new elements to a drawing. i would like firstly to add lines. i can obtain the screen coordinates (cpoint) of the mouse click positions. what i need to find out is how i transform these coordinates to world coordinates in order to add the line to the database. i have tried the various matrices available from odgsview but none of them seem to be the correct transform. any assistance would be greatly appreciated.
use inverted odgsview::worldtodevicematrix(), however odgematrix3d::invert() would fail if odgsview::worldtodevicematrix() has perspective transform.
|