2Dグラフィックスについて学習していて、円を描画しようとしていますが、奇妙な曲線が表示されます。
function rotatePoint (point, centerPoint, theta) {
point[0] = point[0] - centerPoint[0];
point[1] = point[1] - centerPoint[1];
point[0] = point[0]*Math.cos(theta)-point[1]*Math.sin(theta);
point[1] = point[0]*Math.sin(theta)+point[1]*Math.cos(theta);
point[0] = point[0] + centerPoint[0];
point[1] = point[1] + centerPoint[1];
}
数式は問題ないようですが...わかりません、理解できません:/...助けてくれてありがとう。 http://jsfiddle.net/nQvGT/173/