2011-07-05 4 views

답변

4

당신이 전달하는 때문에도, Math.cos() 욕구 라디안 :

trace(Math.cos(toRad(45))); 
//0.7071067811865476 

trace(Math.cos(toRad(30))); 
//0.8660254037844387 

trace(Math.cos(toRad(35.264))); 
//0.8165005076106897 

function toRad($deg:Number):Number 
{ 
    return ($deg/180)*Math.PI; 
} 

Degree - Radian conversion

+0

내가있는 풀 부끄러워 해요 : P – webnoon