【Tips】角度計算【JavaScript】
Radian ⇔ Degree Angle
function toDegreeAngle (radian) { return radian*180/Math.PI; } function toRadianAngle (degree) { return degree*Math.PI/180; }
相対角度の計算
function relativeRotation (position) { return Math.atan2(position.x, position.z); }
【参考URL】
(wikipedia) ラジアン http://ja.wikipedia.org/wiki/%E3%83%A9%E3%82%B8%E3%82%A2%E3%83%B3
角度とラジアン http://flashrave.org/relate/angle/