diff options
Diffstat (limited to 'LuaSL/src')
-rw-r--r-- | LuaSL/src/constants.lsl | 23 |
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 @@ | |||
1 | float PI = 3.14159265358979323846264338327950; | ||
2 | float PI_BY_TWO = PI / 2; // 1.57079632679489661923132169163975 | ||
3 | float TWO_PI = PI * 2; // 6.28318530717958647692528676655900 | ||
4 | float DEG_TO_RAD = PI / 180.0; // 0.01745329252 | ||
5 | float RAD_TO_DEG = 180.0 / PI; // 57.2957795131 | ||
6 | float SQRT2 = 1.4142135623730950488016887242097; | ||
7 | |||
8 | integer ALL_SIDES = -1; | ||
9 | integer LINK_SET = -1; | ||
10 | integer LINK_ROOT = 1; | ||
11 | integer LINK_ALL_OTHERS = -2; | ||
12 | integer LINK_ALL_CHILDREN = -3; | ||
13 | integer LINK_THIS = -4; | ||
14 | |||
15 | integer TRUE = 1; | ||
16 | integer FALSE = 0; | ||
17 | |||
18 | string NULL_KEY = "00000000-0000-0000-0000-000000000000"; | ||
19 | string EOF = "\n\n\n"; | ||
20 | |||
21 | rotation ZERO_ROTATION = <0.0, 0.0, 0.0, 1.0>; | ||
22 | vector ZERO_VECTOR = <0.0, 0.0, 0.0>; | ||
23 | |||