c - World axis to local axis -


how can modify/rotate axis angle world coords object coords?

see below:

void rotatematrix4(float *m, float angle, float *axis); //this function rotates matrix in object space  void rotatelocal(float angle, float *axis) {     rotatematrix4(m, angle, axis) }  void rotateglobal(float angle, float *axis) {     //do axis here     rotatematrix4(m, angle, axis) } 

you found answer - multiplication between tranformation matrix , vector - transforming axis vector object coords.

look @ transformation matrix more information on transformation matrices.

(i comment on answer - rank not yet high enough...)


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -