aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common
diff options
context:
space:
mode:
authorTeravus Ovares2008-09-06 07:52:41 +0000
committerTeravus Ovares2008-09-06 07:52:41 +0000
commit7d89e122930be39e84a6d174548fa2d12ac0484a (patch)
treee5aa5752f988a9aba2a969f49e5e208985eda80c /OpenSim/Tests/Common
parent* minor: speculatively try a change to bamboo.build to see if this generates ... (diff)
downloadopensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.zip
opensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.gz
opensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.bz2
opensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.xz
* This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r--OpenSim/Tests/Common/VectorToleranceConstraint.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Tests/Common/VectorToleranceConstraint.cs b/OpenSim/Tests/Common/VectorToleranceConstraint.cs
index 249fe09..ce2683c 100644
--- a/OpenSim/Tests/Common/VectorToleranceConstraint.cs
+++ b/OpenSim/Tests/Common/VectorToleranceConstraint.cs
@@ -26,17 +26,17 @@
26 */ 26 */
27 27
28using System; 28using System;
29using libsecondlife; 29using OpenMetaverse;
30using NUnit.Framework; 30using NUnit.Framework;
31 31
32namespace OpenSim.Tests.Common 32namespace OpenSim.Tests.Common
33{ 33{
34 public class VectorToleranceConstraint : ANumericalToleranceConstraint 34 public class VectorToleranceConstraint : ANumericalToleranceConstraint
35 { 35 {
36 private LLVector3 _baseValue; 36 private Vector3 _baseValue;
37 private LLVector3 _valueToBeTested; 37 private Vector3 _valueToBeTested;
38 38
39 public VectorToleranceConstraint(LLVector3 baseValue, double tolerance) : base(tolerance) 39 public VectorToleranceConstraint(Vector3 baseValue, double tolerance) : base(tolerance)
40 { 40 {
41 _baseValue = baseValue; 41 _baseValue = baseValue;
42 } 42 }
@@ -54,12 +54,12 @@ namespace OpenSim.Tests.Common
54 { 54 {
55 throw new ArgumentException("Constraint cannot be used upon null values."); 55 throw new ArgumentException("Constraint cannot be used upon null values.");
56 } 56 }
57 if (valueToBeTested.GetType() != typeof (LLVector3)) 57 if (valueToBeTested.GetType() != typeof (Vector3))
58 { 58 {
59 throw new ArgumentException("Constraint cannot be used upon non vector values."); 59 throw new ArgumentException("Constraint cannot be used upon non vector values.");
60 } 60 }
61 61
62 _valueToBeTested = (LLVector3) valueToBeTested; 62 _valueToBeTested = (Vector3) valueToBeTested;
63 63
64 return (IsWithinDoubleConstraint(_valueToBeTested.X, _baseValue.X) && 64 return (IsWithinDoubleConstraint(_valueToBeTested.X, _baseValue.X) &&
65 IsWithinDoubleConstraint(_valueToBeTested.Y, _baseValue.Y) && 65 IsWithinDoubleConstraint(_valueToBeTested.Y, _baseValue.Y) &&