2 ridhdje1 ridhdje1 于 2017.09.12 15:47 提问

svg translate并且rotate后的坐标变化
<path class="cls-16"  id="plane2"
        d="M-64.07,410.9l-2.47-1.78a.52.52,0,0,0,0-.08v-1a.56.56,0,0,0-.56-.56h0a.56.56,0,0,0-.56.56v.31l-1.7-1.22.05-1.92c0-.56-.21-2.19-1-2.19h0c-.74,0-1,1.63-1,2.19l.05,1.92-1.7,1.22V408a.56.56,0,0,0-.56-.56h0a.56.56,0,0,0-.56.56v1a.52.52,0,0,0,0,.08l-2.47,1.78a.24.24,0,0,0-.1.19v1.12a.13.13,0,0,0,.16.12l5.33-1.67.05,1.69L-73,413.75a.1.1,0,0,0,0,.08v1a.06.06,0,0,0,.07.05l2.23-.69a.74.74,0,0,0,.46.17h0a.74.74,0,0,0,.46-.17l2.23.69a.06.06,0,0,0,.07-.05v-1a.1.1,0,0,0,0-.08l-1.94-1.39.05-1.69,5.33,1.67a.13.13,0,0,0,.16-.12V411.1A.24.24,0,0,0-64.07,410.9Z"
        transform="translate(140.33 -310.83)" />
        使用的是svg.js, element.rotate(45)后,坐标系发生变化,现在想知道怎么算以前的一点(x,y)对应现在坐标系中的一点(x1,y1)
Csdn user default icon
上传中...
上传图片
插入图片