LlTan

来自人工智能助力教育知识百科
跳转至: 导航搜索

Template:Needs Translation/


函数名
Function: float llTan( float theta );
参数:返回θ的正切值。

•浮动θ(( float theta ))–以弧度表示的角度

返回值:无
注意事项
示例
示例1
// Touch the object with this script in it to see the tangent of random numbers!
default
{
    touch_start(integer num)
    {
        float r = llFrand(TWO_PI);
        llOwnerSay("The tangent of " + (string)r + " in radians or " + (string)(r * RAD_TO_DEG) + " in degrees is " + (string)llTan(r));
    }
}
相关函数
llSin llAsin –正弦和反正弦

llCos llAcos–余弦和反余弦

llAtan2–反切线

相关事件