diff options
author | Mike Mazur | 2008-07-31 09:34:13 +0000 |
---|---|---|
committer | Mike Mazur | 2008-07-31 09:34:13 +0000 |
commit | ddf126321cd05228a377e49ca23c16c4f0cfe25f (patch) | |
tree | de2a13daf95f48bdbd1cffa2f0a37724b0f5c902 /OpenSim/Region | |
parent | Thanks, sempuki, for a patch that moves all Grid Server's plugins to (diff) | |
download | opensim-SC-ddf126321cd05228a377e49ca23c16c4f0cfe25f.zip opensim-SC-ddf126321cd05228a377e49ca23c16c4f0cfe25f.tar.gz opensim-SC-ddf126321cd05228a377e49ca23c16c4f0cfe25f.tar.bz2 opensim-SC-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')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 5 |
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 |