diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/ScriptEngine/Common/LSL_Types.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/OpenSim/Grid/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Grid/ScriptEngine/Common/LSL_Types.cs new file mode 100644 index 0000000..b2578dd --- /dev/null +++ b/OpenSim/Grid/ScriptEngine/Common/LSL_Types.cs | |||
@@ -0,0 +1,53 @@ | |||
1 | using System; | ||
2 | |||
3 | namespace OpenSim.Grid.ScriptEngine.Common | ||
4 | { | ||
5 | [Serializable] | ||
6 | public class LSL_Types | ||
7 | { | ||
8 | [Serializable] | ||
9 | public struct Vector3 | ||
10 | { | ||
11 | public double X; | ||
12 | public double Y; | ||
13 | public double Z; | ||
14 | |||
15 | public Vector3(Vector3 vector) | ||
16 | { | ||
17 | X = (float)vector.X; | ||
18 | Y = (float)vector.Y; | ||
19 | Z = (float)vector.Z; | ||
20 | } | ||
21 | public Vector3(double x, double y, double z) | ||
22 | { | ||
23 | X = x; | ||
24 | Y = y; | ||
25 | Z = z; | ||
26 | } | ||
27 | } | ||
28 | [Serializable] | ||
29 | public struct Quaternion | ||
30 | { | ||
31 | public double X; | ||
32 | public double Y; | ||
33 | public double Z; | ||
34 | public double R; | ||
35 | |||
36 | public Quaternion(Quaternion Quat) | ||
37 | { | ||
38 | X = (float)Quat.X; | ||
39 | Y = (float)Quat.Y; | ||
40 | Z = (float)Quat.Z; | ||
41 | R = (float)Quat.R; | ||
42 | } | ||
43 | public Quaternion(double x, double y, double z, double r) | ||
44 | { | ||
45 | X = x; | ||
46 | Y = y; | ||
47 | Z = z; | ||
48 | R = r; | ||
49 | } | ||
50 | |||
51 | } | ||
52 | } | ||
53 | } | ||