LlCos/ko

From Second Life Wiki
< LlCos
Revision as of 23:14, 3 March 2009 by Nanjido Oh (talk | contribs) (New page: {{LSL_Function/ko |sort=Cos|func=llCos |func_id=1|func_sleep=0.0|func_energy=10.0 |func_footnote |p1_type=float|p1_name=theta|p1_desc=라디안 각도 |return_type=float= |return_text=thet...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

설명

함수: 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의 관련항목이 도움을 줄 수 있을 지도 모릅니다.