2008/7/22 David Adam <david.adam.cnrs at gmail.com>: > + b = pow(D3DXVec3Dot(&difference, praydirection), 2); Maybe I'm just bad at math, but shouldn't that just be b = D3DXVec3Dot(&difference, praydirection); (The test case doesn't really help there) > + ok(result == TRUE, "expected FALSE, received TRUE\n"); That's misleading.