diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2 opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz |
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_Types.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index 55c13a4..7a8b4ca 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -26,8 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Text.RegularExpressions; | ||
30 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Text.RegularExpressions; | ||
31 | 31 | ||
32 | namespace OpenSim.Region.ScriptEngine.Common | 32 | namespace OpenSim.Region.ScriptEngine.Common |
33 | { | 33 | { |
@@ -639,7 +639,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
639 | public double GeometricMean() | 639 | public double GeometricMean() |
640 | { | 640 | { |
641 | double ret = 1.0; | 641 | double ret = 1.0; |
642 | list nums = list.ToDoubleList(this); | 642 | list nums = ToDoubleList(this); |
643 | for (int i = 0; i < nums.Data.Length; i++) | 643 | for (int i = 0; i < nums.Data.Length; i++) |
644 | { | 644 | { |
645 | ret *= (double)nums.Data[i]; | 645 | ret *= (double)nums.Data[i]; |
@@ -650,7 +650,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
650 | public double HarmonicMean() | 650 | public double HarmonicMean() |
651 | { | 651 | { |
652 | double ret = 0.0; | 652 | double ret = 0.0; |
653 | list nums = list.ToDoubleList(this); | 653 | list nums = ToDoubleList(this); |
654 | for (int i = 0; i < nums.Data.Length; i++) | 654 | for (int i = 0; i < nums.Data.Length; i++) |
655 | { | 655 | { |
656 | ret += 1.0 / (double)nums.Data[i]; | 656 | ret += 1.0 / (double)nums.Data[i]; |
@@ -661,7 +661,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
661 | public double Variance() | 661 | public double Variance() |
662 | { | 662 | { |
663 | double s = 0; | 663 | double s = 0; |
664 | list num = list.ToDoubleList(this); | 664 | list num = ToDoubleList(this); |
665 | for (int i = 0; i < num.Data.Length; i++) | 665 | for (int i = 0; i < num.Data.Length; i++) |
666 | { | 666 | { |
667 | s += Math.Pow((double)num.Data[i], 2); | 667 | s += Math.Pow((double)num.Data[i], 2); |
@@ -701,7 +701,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
701 | output = "["; | 701 | output = "["; |
702 | foreach (object o in m_data) | 702 | foreach (object o in m_data) |
703 | { | 703 | { |
704 | if (o is System.String) | 704 | if (o is String) |
705 | { | 705 | { |
706 | output = output + "\"" + o + "\", "; | 706 | output = output + "\"" + o + "\", "; |
707 | } | 707 | } |
@@ -837,7 +837,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
837 | 837 | ||
838 | #region Operators | 838 | #region Operators |
839 | 839 | ||
840 | static public implicit operator System.Boolean(key k) | 840 | static public implicit operator Boolean(key k) |
841 | { | 841 | { |
842 | if (k.value.Length == 0) | 842 | if (k.value.Length == 0) |
843 | { | 843 | { |
@@ -864,7 +864,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
864 | return new key(s); | 864 | return new key(s); |
865 | } | 865 | } |
866 | 866 | ||
867 | static public implicit operator System.String(key k) | 867 | static public implicit operator String(key k) |
868 | { | 868 | { |
869 | return k.value; | 869 | return k.value; |
870 | } | 870 | } |
@@ -917,7 +917,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
917 | #endregion | 917 | #endregion |
918 | 918 | ||
919 | #region Operators | 919 | #region Operators |
920 | static public implicit operator System.Boolean(LSLString s) | 920 | static public implicit operator Boolean(LSLString s) |
921 | { | 921 | { |
922 | if (s.m_string.Length == 0) | 922 | if (s.m_string.Length == 0) |
923 | { | 923 | { |
@@ -929,7 +929,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
929 | } | 929 | } |
930 | } | 930 | } |
931 | 931 | ||
932 | static public implicit operator System.String(LSLString s) | 932 | static public implicit operator String(LSLString s) |
933 | { | 933 | { |
934 | return s.m_string; | 934 | return s.m_string; |
935 | } | 935 | } |
@@ -1017,12 +1017,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1017 | } | 1017 | } |
1018 | 1018 | ||
1019 | #endregion | 1019 | #endregion |
1020 | static public implicit operator System.Int32(LSLInteger i) | 1020 | static public implicit operator Int32(LSLInteger i) |
1021 | { | 1021 | { |
1022 | return i.value; | 1022 | return i.value; |
1023 | } | 1023 | } |
1024 | 1024 | ||
1025 | static public implicit operator System.Boolean(LSLInteger i) | 1025 | static public implicit operator Boolean(LSLInteger i) |
1026 | { | 1026 | { |
1027 | if (i.value == 0) | 1027 | if (i.value == 0) |
1028 | { | 1028 | { |
@@ -1086,7 +1086,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1086 | 1086 | ||
1087 | #region Operators | 1087 | #region Operators |
1088 | 1088 | ||
1089 | static public implicit operator System.Double(LSLFloat f) | 1089 | static public implicit operator Double(LSLFloat f) |
1090 | { | 1090 | { |
1091 | return f.value; | 1091 | return f.value; |
1092 | } | 1092 | } |
@@ -1097,7 +1097,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1097 | //} | 1097 | //} |
1098 | 1098 | ||
1099 | 1099 | ||
1100 | static public implicit operator System.Boolean(LSLFloat f) | 1100 | static public implicit operator Boolean(LSLFloat f) |
1101 | { | 1101 | { |
1102 | if (f.value == 0) | 1102 | if (f.value == 0) |
1103 | { | 1103 | { |