aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorMike Mazur2008-07-31 09:34:13 +0000
committerMike Mazur2008-07-31 09:34:13 +0000
commitddf126321cd05228a377e49ca23c16c4f0cfe25f (patch)
treede2a13daf95f48bdbd1cffa2f0a37724b0f5c902 /OpenSim/Region/ScriptEngine/Common
parentThanks, sempuki, for a patch that moves all Grid Server's plugins to (diff)
downloadopensim-SC_OLD-ddf126321cd05228a377e49ca23c16c4f0cfe25f.zip
opensim-SC_OLD-ddf126321cd05228a377e49ca23c16c4f0cfe25f.tar.gz
opensim-SC_OLD-ddf126321cd05228a377e49ca23c16c4f0cfe25f.tar.bz2
opensim-SC_OLD-ddf126321cd05228a377e49ca23c16c4f0cfe25f.tar.xz
Thanks, M. Igarashi & nlin, for a patch that implements unary minus operator
for Vector3 type. Fix issue 1872.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-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 21acac2..4fff717 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
@@ -126,6 +126,11 @@ namespace OpenSim.Region.ScriptEngine.Common
126 return (x == vector.x && x == vector.x && z == vector.z); 126 return (x == vector.x && x == vector.x && z == vector.z);
127 } 127 }
128 128
129 public static Vector3 operator -(Vector3 vector)
130 {
131 return new Vector3(-vector.x, -vector.y, -vector.z);
132 }
133
129 #endregion 134 #endregion
130 135
131 #region Vector & Vector Math 136 #region Vector & Vector Math