Hi all,
I just have a little question, because I'm not sure of something about quat
:
I have to quat q1 and q2
To pass form q1 to q2 I've made q = q1.inverse()*q2
But even if the result angle looks correct... the vector or rotation looks
very little :
vec : 2.71051e-020, -2.71051e-020,
Hi,
I'd like to help, but don't know what you are asking...
Vincent Bourdier wrote:
Hi all,
I just have a little question, because I'm not sure of something about
quat :
I have to quat q1 and q2
To pass form q1 to q2 I've made q = q1.inverse()*q2
But even if the result angle looks
Hi
First, yes it is the vector OF rotation, sorry for the mistake...
And when I speak about normalizing, I'm just thinking of making a
vector.normalize()... with that operation, length of the vector will be 1,
even if the vector is close to 0 0 0...
I just want to use this vector to set the
Thanks a lot,
I'll try to normailize it, because epsilon is not very little in my
application, so this could make zero-rotation
Thanks :)
Vincent.
2008/3/19, J.P. Delport [EMAIL PROTECTED]:
Hi,
the code from makeRotate explains it best:
--8--
void Quat::makeRotate( value_type angle,
Hi,
the code from makeRotate explains it best:
--8--
void Quat::makeRotate( value_type angle, value_type x, value_type y,
value_type z )
{
const value_type epsilon = 0.001;
value_type length = sqrt( x*x + y*y + z*z );
if (length epsilon)
{
// ~zero length
5 matches
Mail list logo