diff options
author | Charles Krinke | 2008-07-15 03:06:38 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-15 03:06:38 +0000 |
commit | ff16a886c19d17f1f65a4c86d51a7b371aad6623 (patch) | |
tree | 96ee18fd825af4c1e6f4ec6873c479e9f1c253db /OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |
parent | Mantis#1745. Thank you kindly, Lulurun for a patch that: (diff) | |
download | opensim-SC_OLD-ff16a886c19d17f1f65a4c86d51a7b371aad6623.zip opensim-SC_OLD-ff16a886c19d17f1f65a4c86d51a7b371aad6623.tar.gz opensim-SC_OLD-ff16a886c19d17f1f65a4c86d51a7b371aad6623.tar.bz2 opensim-SC_OLD-ff16a886c19d17f1f65a4c86d51a7b371aad6623.tar.xz |
Mantis#1746. Thank you kindly, nlin & M.Igarashi for a patch that:
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/Common/LSL_Types.cs')
-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) |