function radRotate(cX,cY,theta,oldX,oldY){
//회전중심점의 x,y좌표, 라디안 각도, 기준점의 x,y좌표를 받아
//라디안 각도만큼 회전이동한 값을 newX, newY에 담는 함수
newX=cX+(oldX-cX)*Math.cos(theta)-(oldY-cY)*Math.sin(theta);
newY=cY+(oldX-cX)*Math.sin(theta)+(oldY-cY)*Math.cos(theta);
}
----------------------------------
graphics.lineStyle(1, 0x000000);
graphics.moveTo(x, y);
graphics.lineTo(x, y);
등을 이용해 좌표나 선 등을 처리.
|