public void TestConjugate() { TK.Quaternion tkQ = TK.Quaternion.FromAxisAngle(TK.Vector3.UnitY, TK.MathHelper.PiOver2); Quaternion q = new Quaternion(tkQ.W, tkQ.X, tkQ.Y, tkQ.Z); tkQ.Conjugate(); q.Conjugate(); TestHelper.AssertEquals(tkQ.X, tkQ.Y, tkQ.Z, tkQ.W, q, "Testing conjugate"); }
public static OpenTK.Quaternion conjugate(OpenTK.Quaternion q) { OpenTK.Quaternion t = q; t.Conjugate(); return(t); }