* Updated the unit tests to compile and run

* Added several new methods for converting between euler angles (stored in LLVector3), quaternions and matrices. Most of the new methods are commented out as the math is currently buggy and needs more unit testing to fix

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1568 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2007-12-27 23:20:45 +00:00
parent adae01ab87
commit 65f224ad2b
3 changed files with 141 additions and 111 deletions

View File

@@ -84,7 +84,13 @@ namespace libsecondlife.Tests
[Test]
public void VectorQuaternionMath()
{
;
// Convert a vector to a quaternion and back
LLVector3 a = new LLVector3(1f, 0.5f, 0.75f);
LLQuaternion b = a.ToQuaternion();
LLVector3 c;
b.GetEulerAngles(out c.X, out c.Y, out c.Z);
Assert.IsTrue(a == c, c.ToString() + " does not equal " + a.ToString());
}
[Test]