Add new files
This commit is contained in:
20
Script Tests/Script tests/Object/llAtan2.lsl
Normal file
20
Script Tests/Script tests/Object/llAtan2.lsl
Normal file
@@ -0,0 +1,20 @@
|
||||
// :CATEGORY:Scripting
|
||||
// :AUTHOR:Justin Clark-Casey (justincc)
|
||||
// :KEYWORDS:Opensim
|
||||
// :REV:1
|
||||
// :WORLD:Opensim
|
||||
// :DESCRIPTION:
|
||||
// One of many tests for Opensim
|
||||
// :CODE:
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
float num1 = llFrand(100.0);
|
||||
float num2 = llFrand(100.0);
|
||||
llOwnerSay("y = " + (string)num1);
|
||||
llOwnerSay("x = " + (string)num2);
|
||||
llOwnerSay("The tangent of y divided by x is " + (string)llAtan2(num1, num2));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user