]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Feb 2012 15:11:32 +0000 (15:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11708 d7cf8633-e32d-0410-b094-e92efae38249

mathlib.c

index 129b0b8a6520f64eddca116e3ce8960a61f8501e..ed0a43c60d3869c735dad47f6495f50afa47928d 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);