简体   繁体   中英

Calculating roll from yaw, pitch, and up vector

If I have a camera's yaw, pitch, and up vector (always [0,1,0] in my case), what's the best way to calculate the corresponding roll?

When a camera's up vector is (0,1,0), the effect is to lock its yaw to 0 degrees.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM