Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

rotation function with 4 arguments..??

$
0
0

Hi Everyone !

I am working on a project (I would love to share with u all) that involves visualizing data received from gyro sensor using arduino. I got the basic code which uses toxiclibs library to convert the quaternion values (recieved through calculation in arduino) of the rotation to 4 values- Rotation angle in radians and rotation axis x,y,z (as described in the toxiclibs documentation).

And then uses rotate function with the 4 values as argument to rotate. which works!! Here is the part of code I am talking about -
float[] axis = quat.toAxisAngle(); rotate(axis[0], -axis[1], axis[3], axis[2]);

My question is how does this kind of rotation function exactly works?? There is no description about this kind of rotate function even in Processing refernce. Also more importantly I need to track the new coordinates of rotated object after rotation.

I am stuck here.. tried a couple of ideas. Didn't worked out. Need some inspiration from you guys.

Thanks !


Viewing all articles
Browse latest Browse all 2896

Trending Articles