mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
* 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.
This commit is contained in:
@@ -26,17 +26,17 @@
|
||||
*/
|
||||
|
||||
using System;
|
||||
using libsecondlife;
|
||||
using OpenMetaverse;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace OpenSim.Tests.Common
|
||||
{
|
||||
public class VectorToleranceConstraint : ANumericalToleranceConstraint
|
||||
{
|
||||
private LLVector3 _baseValue;
|
||||
private LLVector3 _valueToBeTested;
|
||||
private Vector3 _baseValue;
|
||||
private Vector3 _valueToBeTested;
|
||||
|
||||
public VectorToleranceConstraint(LLVector3 baseValue, double tolerance) : base(tolerance)
|
||||
public VectorToleranceConstraint(Vector3 baseValue, double tolerance) : base(tolerance)
|
||||
{
|
||||
_baseValue = baseValue;
|
||||
}
|
||||
@@ -54,12 +54,12 @@ namespace OpenSim.Tests.Common
|
||||
{
|
||||
throw new ArgumentException("Constraint cannot be used upon null values.");
|
||||
}
|
||||
if (valueToBeTested.GetType() != typeof (LLVector3))
|
||||
if (valueToBeTested.GetType() != typeof (Vector3))
|
||||
{
|
||||
throw new ArgumentException("Constraint cannot be used upon non vector values.");
|
||||
}
|
||||
|
||||
_valueToBeTested = (LLVector3) valueToBeTested;
|
||||
_valueToBeTested = (Vector3) valueToBeTested;
|
||||
|
||||
return (IsWithinDoubleConstraint(_valueToBeTested.X, _baseValue.X) &&
|
||||
IsWithinDoubleConstraint(_valueToBeTested.Y, _baseValue.Y) &&
|
||||
|
||||
Reference in New Issue
Block a user