diff options
author | Charles Krinke | 2008-07-16 03:07:54 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-16 03:07:54 +0000 |
commit | 4350613f1d7cb6cd187f3cbd94d293a53e924381 (patch) | |
tree | be9005f4fb0d290e77456e876400bc9c258378a5 /OpenSim/Region/ScriptEngine | |
parent | Updated files for the loadbalancer web interface (diff) | |
download | opensim-SC-4350613f1d7cb6cd187f3cbd94d293a53e924381.zip opensim-SC-4350613f1d7cb6cd187f3cbd94d293a53e924381.tar.gz opensim-SC-4350613f1d7cb6cd187f3cbd94d293a53e924381.tar.bz2 opensim-SC-4350613f1d7cb6cd187f3cbd94d293a53e924381.tar.xz |
Mantis#1746. Thank you kindly, nlin for pointing out that
I needed to apply the patch a little better then last night
for: Dot product operator in LSL_Types.cs incorrectly returns
a component-wise vector multiplication; it should return a
scalar dot product. Thanks to M. Igarashi for the patch.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index eb13f45..3dfa711 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -141,9 +141,9 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
141 | return new Vector3(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); | 141 | return new Vector3(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); |
142 | } | 142 | } |
143 | 143 | ||
144 | public static Vector3 operator *(Vector3 lhs, Vector3 rhs) | 144 | public static LSLFloat operator *(Vector3 lhs, Vector3 rhs) |
145 | { | 145 | { |
146 | return new Vector3(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); | 146 | return Dot(lhs, rhs); |
147 | } | 147 | } |
148 | 148 | ||
149 | public static Vector3 operator %(Vector3 v1, Vector3 v2) | 149 | public static Vector3 operator %(Vector3 v1, Vector3 v2) |