On Thu, Feb 4, 2010 at 10:16 PM, André <[email protected]> wrote:
> what would X Y and Z in your example be? All I have is the
> Accelerometer that measures three values, so not
> sure hwo to set up those vectors(?)

ah, you wrote earlier that you have

> three values, one for each X, Y and Z axis.

for some reason I thought you have three values for each axis, meaning
9 values in total.

but if you have only 3 values in total, it is not so obvious what they
are. my best guess would be that they are direction, and then you can
use them (after normalizing to unit vector) for one of vectors, for
example Y. the other two vectors would have to be then picked at
random, for example

X.x = -Y.y; X.y = Y.x; X.z = Y.z;
Z = X cross Y (or Y cross X, whichever works for away transform matrix)

Reply via email to