diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index de4fce3..8d40a38 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -869,19 +869,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
869 | 869 | ||
870 | // Utility function for llRot2Euler | 870 | // Utility function for llRot2Euler |
871 | 871 | ||
872 | // normalize an angle between -PI and PI (-180 to +180 degrees) | ||
873 | protected double NormalizeAngle(double angle) | ||
874 | { | ||
875 | if (angle > -Math.PI && angle < Math.PI) | ||
876 | return angle; | ||
877 | |||
878 | int numPis = (int)(Math.PI / angle); | ||
879 | double remainder = angle - Math.PI * numPis; | ||
880 | if (numPis % 2 == 1) | ||
881 | return Math.PI - angle; | ||
882 | return remainder; | ||
883 | } | ||
884 | |||
885 | public LSL_Vector llRot2Euler(LSL_Rotation q1) | 872 | public LSL_Vector llRot2Euler(LSL_Rotation q1) |
886 | { | 873 | { |
887 | m_host.AddScriptLPS(1); | 874 | m_host.AddScriptLPS(1); |
@@ -14236,7 +14223,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
14236 | if (dist == 0) | 14223 | if (dist == 0) |
14237 | return list; | 14224 | return list; |
14238 | 14225 | ||
14239 | RayFilterFlags rayfilter = RayFilterFlags.ClosestAndBackCull; | 14226 | RayFilterFlags rayfilter = RayFilterFlags.BackFaceCull; |
14240 | if (checkTerrain) | 14227 | if (checkTerrain) |
14241 | rayfilter |= RayFilterFlags.land; | 14228 | rayfilter |= RayFilterFlags.land; |
14242 | // if (checkAgents) | 14229 | // if (checkAgents) |