diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tests/Common/VectorToleranceConstraint.cs | 12 |
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 | ||
28 | using System; | 28 | using System; |
29 | using libsecondlife; | 29 | using OpenMetaverse; |
30 | using NUnit.Framework; | 30 | using NUnit.Framework; |
31 | 31 | ||
32 | namespace OpenSim.Tests.Common | 32 | namespace 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) && |