在B坐标系中的C点的坐标y是cosd(y-tgd*x);坐标x是:cosd*tgd(y-tgd*x)+x/cosd

解决方案 »

  1.   

    var a = Math.atan(y,x);
    var x1 = Math.cos(a) * Math.tan(a) * (y - tan(a) * x) + x / Math.cos(a);
    var y1 = Math.cos(a) * (y - Math.tan(a) * x);
      

  2.   

    楼上的:
    坐标系B的X轴与坐标系A的夹角为d度这个参数在哪里啊?
      

  3.   

    var a = Math.atan(y,x);
      

  4.   


    var d=90;
    var x=1,y=0;
    var a=Math.PI*180/d;
    var x1 = Math.cos(a) * Math.tan(a) * (y - Math.tan(a) * x) + x / Math.cos(a);
    var y1 = Math.cos(a) * (y - Math.tan(a) * x);楼上的,结果不对啊,不管d为多少,结果都一样
      

  5.   

    桃花岛主() 16:19:08
    cos(Math.acos(x/sqrt(x*x + y*y)) - d*Math.PI/180)
    桃花岛主() 16:19:12
    sin(Math.acos(x/sqrt(x*x + y*y)) - d*Math.PI/180)
      

  6.   

    单纯坐标旋转:
    新坐标为:
    ( x*cos(d)+y*sin(d) , y*cos(d)-x*sin(d)  )
      

  7.   

    http://blog.csdn.net/luckisok/archive/2007/04/15/1565569.aspx