aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_Types.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
index bbdd4ee..fc0e282 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
@@ -80,6 +80,11 @@ namespace OpenSim.Region.ScriptEngine.Common
80 return "<" + x.ToString() + ", " + y.ToString() + ", " + z.ToString() + ">"; 80 return "<" + x.ToString() + ", " + y.ToString() + ", " + z.ToString() + ">";
81 } 81 }
82 82
83 public static explicit operator string(Vector3 vec)
84 {
85 return "<" + vec.x.ToString() + ", " + vec.y.ToString() + ", " + vec.z.ToString() + ">";
86 }
87
83 public static bool operator ==(Vector3 lhs, Vector3 rhs) 88 public static bool operator ==(Vector3 lhs, Vector3 rhs)
84 { 89 {
85 return (lhs.x == rhs.x && lhs.y == rhs.y && lhs.z == rhs.z); 90 return (lhs.x == rhs.x && lhs.y == rhs.y && lhs.z == rhs.z);