LlCos/ko

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

설명

함수: float llCos( float theta );

반환되는 값은 theta의 코사인.

• float theta 라디안 각도

예제

<lsl>//누르면 임의의 수의 코사인 값을 알려준다 default {

   touch_start(integer num)
   {
       float r = llFrand(TWO_PI);
       llOwnerSay("The cosine of " + (string)r + " in radians or " + (string)(r * RAD_TO_DEG) + 
                        " in degrees is " + (string)llCos(r));
   }

}</lsl>

함께 보기

함수

• llSin llAsin 사인과 역사인
•  llAcos 역코사인
• llTan llAtan2 탄젠트와 역탄젠트2
이 글이 유용하지 않으세요? LSL Wiki의 관련항목이 도움을 줄 수 있을 지도 모릅니다.