将剪切变换应用于圆 [英] Apply a shear transform to a circle

查看:203
本文介绍了将剪切变换应用于圆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序来创建等距线图,我需要弄清楚如何使用剪切矩阵变换将2D圆转换为椭圆。我已经在谷歌搜索了几天,但似乎无法提出任何代码示例。我使用的数据是中心点和半径。



有人可以指向我的资源吗?

I'm writing a program to create isometric line drawings and I need to figure out how to convert 2D circles to ellipses using a shear matrix transform. I've searched Google for a few days now but can't seem to come up with any code examples. Data I use is centrepoint and radius.

Can someone point me to a resource?

推荐答案

你可以不加修改地保留圆圈(以及其他所有内容)并让图形对象处理通过其转换属性进行剪切。它的类型为 Matrix ,它支持 Shaer 开箱即用。
You can leave the circle (and everything else) unmodified and let the Graphics object deal with shearing via its Transform property. It's of type Matrix, which supports Shaer out of the box.


这篇关于将剪切变换应用于圆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆