diff options
author | Melanie Thielker | 2009-04-10 17:26:00 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-04-10 17:26:00 +0000 |
commit | 292672675a4d46c4d6d785d7f8d3cd9f93971174 (patch) | |
tree | cb6b41b4190551dab559b1a9fc8f56d5a5cddb36 /OpenSim | |
parent | * Apply http://opensimulator.org/mantis/view.php?id=3427 (diff) | |
download | opensim-SC-292672675a4d46c4d6d785d7f8d3cd9f93971174.zip opensim-SC-292672675a4d46c4d6d785d7f8d3cd9f93971174.tar.gz opensim-SC-292672675a4d46c4d6d785d7f8d3cd9f93971174.tar.bz2 opensim-SC-292672675a4d46c4d6d785d7f8d3cd9f93971174.tar.xz |
Thank you, OwenOyen, for a patch that corrects the behavior of llRot2Euler.
Committed with comment changes.
Fixes Mantis #3412
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
454 | 454 | ||
455 | // Utility function for llRot2Euler | 455 | // Utility function for llRot2Euler |
456 | 456 | ||
457 | // normalize an angle between 0 - 2*PI (0 and 360 degrees) | 457 | // normalize an angle between -PI and PI (-180 to +180 degrees) |
458 | private double NormalizeAngle(double angle) | 458 | private double NormalizeAngle(double angle) |
459 | { | 459 | { |
460 | angle = angle % (Math.PI * 2); | 460 | angle = angle % (Math.PI * 2); |
461 | if (angle < 0) angle = angle + Math.PI * 2; | 461 | // if (angle < 0) angle = angle + Math.PI * 2; |
462 | return angle; | 462 | return angle; |
463 | } | 463 | } |
464 | 464 | ||