]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add a note about a VectorVectors bug
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Feb 2012 15:11:32 +0000 (15:11 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 20 Feb 2012 19:32:31 +0000 (20:32 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11708 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c5de3c38d771c3ef40522f73dea26b463ce82d05

mathlib.c

index dae0de50ba070a4f144e6830e47e5fa4da125700..3bb17628dfd99a2e7f1c56bd10adbbc03795830d 100644 (file)
--- a/mathlib.c
+++ b/mathlib.c
@@ -203,6 +203,10 @@ void VectorVectors(const vec3_t forward, vec3_t right, vec3_t up)
        right[0] = forward[2];
        right[1] = -forward[0];
        right[2] = forward[1];
+       // BUG!
+       //   assume forward = {sqrt(1/3), sqrt(1/3), -sqrt(1/3)}
+       //   then right will be {-sqrt(1/3), -sqrt(1/3), sqrt(1/3)}
+       //   PROBLEM?
 
        d = DotProduct(forward, right);
        VectorMA(right, -d, forward, right);