From 292672675a4d46c4d6d785d7f8d3cd9f93971174 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 10 Apr 2009 17:26:00 +0000 Subject: Thank you, OwenOyen, for a patch that corrects the behavior of llRot2Euler. Committed with comment changes. Fixes Mantis #3412 --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0efdd77..d3543ad 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -454,11 +454,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // Utility function for llRot2Euler - // normalize an angle between 0 - 2*PI (0 and 360 degrees) + // normalize an angle between -PI and PI (-180 to +180 degrees) private double NormalizeAngle(double angle) { angle = angle % (Math.PI * 2); - if (angle < 0) angle = angle + Math.PI * 2; + // if (angle < 0) angle = angle + Math.PI * 2; return angle; } -- cgit v1.1