本帖最后由 白糖 于 2013-9-29 00:01 编辑
- //坐标转换WCS2UCS
- public Point3d WCS2UCS(Editor ed, Point3d ptWcs)
- {
- Matrix3d mt = ed.CurrentUserCoordinateSystem;
- return ptWcs.TransformBy(mt.Inverse());
- }
- //坐标转换UCS2WCS
- public Point3d UCS2WCS(Editor ed, Point3d ptUcs)
- {
- Matrix3d mt = ed.CurrentUserCoordinateSystem;
- return ptUcs.TransformBy(mt);
- }
|