aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL/src')
-rw-r--r--LuaSL/src/constants.lsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl
new file mode 100644
index 0000000..3b2f5a8
--- /dev/null
+++ b/LuaSL/src/constants.lsl
@@ -0,0 +1,23 @@
1float PI = 3.14159265358979323846264338327950;
2float PI_BY_TWO = PI / 2; // 1.57079632679489661923132169163975
3float TWO_PI = PI * 2; // 6.28318530717958647692528676655900
4float DEG_TO_RAD = PI / 180.0; // 0.01745329252
5float RAD_TO_DEG = 180.0 / PI; // 57.2957795131
6float SQRT2 = 1.4142135623730950488016887242097;
7
8integer ALL_SIDES = -1;
9integer LINK_SET = -1;
10integer LINK_ROOT = 1;
11integer LINK_ALL_OTHERS = -2;
12integer LINK_ALL_CHILDREN = -3;
13integer LINK_THIS = -4;
14
15integer TRUE = 1;
16integer FALSE = 0;
17
18string NULL_KEY = "00000000-0000-0000-0000-000000000000";
19string EOF = "\n\n\n";
20
21rotation ZERO_ROTATION = <0.0, 0.0, 0.0, 1.0>;
22vector ZERO_VECTOR = <0.0, 0.0, 0.0>;
23