斜矩阵算法
我正在寻找倾斜算法,就像在Photoshop上一样,编辑->变换->倾斜 有没有简单的矩阵可以做到这一点?
到目前为止我所看到的是基本的倾斜矩阵(剪切),但它缺乏控制点,不喜欢Photoshop,它在矩形的每个角上至少有4个点,我们可以自由移动每个控制点。
我需要实现它来改造飞机。
I'm looking for skew algorithm, just like on photoshop, edit->transform->skew
is there any simple matrix which could do that?
what I've seen so far was basic skew matrix (shear) but its lack of control point, doesn't like on photoshop which have at least 4 points on each corner of rectangle and we can move each control point freely.
I need to implement it to transform a plane.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看http://www.w3.org/TR/SVG11/coords.html,其中谈到了 SVG,它说:
或 [1 0 tan(a) 1 0 0],具有将 X 坐标倾斜角度 a 的效果。
或 [1 tan(a) 0 1 0 0],具有将 Y 坐标倾斜角度 a 的效果。
希望有帮助! :)
Looking at http://www.w3.org/TR/SVG11/coords.html, which talks about SVG, it says:
or [1 0 tan(a) 1 0 0], which has the effect of skewing X coordinates by angle a.
or [1 tan(a) 0 1 0 0], which has the effect of skewing Y coordinates by angle a.
Hope that helps! :)