aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
index d929da8..98800d0 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
@@ -88,19 +88,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
88 CheckllAngleBetween(new Vector3(1, 1, 1), 0, 1, 1); 88 CheckllAngleBetween(new Vector3(1, 1, 1), 0, 1, 1);
89 CheckllAngleBetween(new Vector3(1, 1, 1), 90, 1, 1); 89 CheckllAngleBetween(new Vector3(1, 1, 1), 90, 1, 1);
90 CheckllAngleBetween(new Vector3(1, 1, 1), 180, 1, 1); 90 CheckllAngleBetween(new Vector3(1, 1, 1), 180, 1, 1);
91 91
92 CheckllAngleBetween(new Vector3(1, 0, 0), 0, 1.6f, 1.8f); 92 CheckllAngleBetween(new Vector3(1, 0, 0), 0, 1.6f, 1.8f);
93 CheckllAngleBetween(new Vector3(1, 0, 0), 90, 0.3f, 3.9f); 93 CheckllAngleBetween(new Vector3(1, 0, 0), 90, 0.3f, 3.9f);
94 CheckllAngleBetween(new Vector3(1, 0, 0), 180, 8.8f, 7.4f); 94 CheckllAngleBetween(new Vector3(1, 0, 0), 180, 8.8f, 7.4f);
95 95
96 CheckllAngleBetween(new Vector3(0, 1, 0), 0, 9.8f, -9.4f); 96 CheckllAngleBetween(new Vector3(0, 1, 0), 0, 9.8f, -9.4f);
97 CheckllAngleBetween(new Vector3(0, 1, 0), 90, 8.4f, -8.2f); 97 CheckllAngleBetween(new Vector3(0, 1, 0), 90, 8.4f, -8.2f);
98 CheckllAngleBetween(new Vector3(0, 1, 0), 180, 0.4f, -5.8f); 98 CheckllAngleBetween(new Vector3(0, 1, 0), 180, 0.4f, -5.8f);
99 99
100 CheckllAngleBetween(new Vector3(0, 0, 1), 0, -6.8f, 3.4f); 100 CheckllAngleBetween(new Vector3(0, 0, 1), 0, -6.8f, 3.4f);
101 CheckllAngleBetween(new Vector3(0, 0, 1), 90, -3.6f, 5.6f); 101 CheckllAngleBetween(new Vector3(0, 0, 1), 90, -3.6f, 5.6f);
102 CheckllAngleBetween(new Vector3(0, 0, 1), 180, -3.8f, 1.1f); 102 CheckllAngleBetween(new Vector3(0, 0, 1), 180, -3.8f, 1.1f);
103 103
104 CheckllAngleBetween(new Vector3(1, 1, 1), 0, -7.7f, -2.0f); 104 CheckllAngleBetween(new Vector3(1, 1, 1), 0, -7.7f, -2.0f);
105 CheckllAngleBetween(new Vector3(1, 1, 1), 90, -3.0f, -9.1f); 105 CheckllAngleBetween(new Vector3(1, 1, 1), 90, -3.0f, -9.1f);
106 CheckllAngleBetween(new Vector3(1, 1, 1), 180, -7.9f, -8.0f); 106 CheckllAngleBetween(new Vector3(1, 1, 1), 180, -7.9f, -8.0f);
@@ -246,7 +246,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
246 LSL_Types.Quaternion newRot = m_lslApi.llEuler2Rot(eulerCalc); 246 LSL_Types.Quaternion newRot = m_lslApi.llEuler2Rot(eulerCalc);
247 // Multiple original quaternion by conjugate of quaternion calculated with angles. 247 // Multiple original quaternion by conjugate of quaternion calculated with angles.
248 LSL_Types.Quaternion check = rot * new LSL_Types.Quaternion(-newRot.x, -newRot.y, -newRot.z, newRot.s); 248 LSL_Types.Quaternion check = rot * new LSL_Types.Quaternion(-newRot.x, -newRot.y, -newRot.z, newRot.s);
249 249
250 Assert.AreEqual(0.0, check.x, VECTOR_COMPONENT_ACCURACY, "TestllRot2Euler X bounds check fail"); 250 Assert.AreEqual(0.0, check.x, VECTOR_COMPONENT_ACCURACY, "TestllRot2Euler X bounds check fail");
251 Assert.AreEqual(0.0, check.y, VECTOR_COMPONENT_ACCURACY, "TestllRot2Euler Y bounds check fail"); 251 Assert.AreEqual(0.0, check.y, VECTOR_COMPONENT_ACCURACY, "TestllRot2Euler Y bounds check fail");
252 Assert.AreEqual(0.0, check.z, VECTOR_COMPONENT_ACCURACY, "TestllRot2Euler Z bounds check fail"); 252 Assert.AreEqual(0.0, check.z, VECTOR_COMPONENT_ACCURACY, "TestllRot2Euler Z bounds check fail");