skew matrix algorithm

后端 未结 1 972
长情又很酷
长情又很酷 2020-12-05 16:03

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

相关标签:
1条回答
  • 2020-12-05 16:14

    Looking at http://www.w3.org/TR/SVG11/coords.html, which talks about SVG, it says:

    • A skew transformation along the x-axis is equivalent to the matrix

    alt text

    or [1 0 tan(a) 1 0 0], which has the effect of skewing X coordinates by angle a.

    • A skew transformation along the y-axis is equivalent to the matrix

    alt text

    or [1 tan(a) 0 1 0 0], which has the effect of skewing Y coordinates by angle a.

    Hope that helps! :)

    0 讨论(0)
提交回复
热议问题