* 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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user