Get yaw, pitch and roll from normalized vector
i do have a vector and i want to have the yaw, pitch and roll angles of that vector.
i already found out, that my yaw is just asin(vec.x), but i don't know how to calculate the other values.
thanks a lot for the help!
greetings,
anchelito
A single vector has no roll (or rather, it can have any roll, since it won't change what it is).
Pitch is asin(y), if y is up. Once you have pitch, you have yaw as acos(x/r) where r = cos(pitch).
Pitch is asin(y), if y is up. Once you have pitch, you have yaw as acos(x/r) where r = cos(pitch).
thanks for the quick response.
actually i do have a line in space defined by two vectors. i imaginary translate both, so that the first vector is at the origin and i thought i just need the normalized translated second vector to calculate yaw, pitch and roll.
does a line have yaw, pitch and roll???
thanks!
actually i do have a line in space defined by two vectors. i imaginary translate both, so that the first vector is at the origin and i thought i just need the normalized translated second vector to calculate yaw, pitch and roll.
does a line have yaw, pitch and roll???
thanks!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement