阅读背景:

在给定两个顶点的情况下,围绕中心点旋转直线

来源:互联网 

I've been trying to rotate a bunch of lines by 90 degrees (that together form a polyline). Each line contains two vertices, say (x1, y1) and (x2, y2). What I'm currently trying to do is rotate around the center point of the line, given center points |x1 - x2| and |y1 - y2|. For some reason (I'm not very mathematically savvy) I can't get the lines to rotate correctly.I've been trying to rotate a bunch of lines by




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: