I don't believe in quaternions... anything that uses imaginary numbers can be done better in some other way... there you go Chip... a challenge!!!
btw: My head has a gimbal lock and it didn't keep me from flying a Cessna If I could have understood what the controllers were saying, I probably wouldn't have quit:)
setq y
qrotate x, zr
getqx x
getqy y
setq x
qrotate z, yr
getqx z
getqy x
setq z
qrotate y, xr
getqx y
getqy z
My order of transformations is likely wrong, but you get the point.
Of course, if you wanted to do this a lot for the same values of xr, yr, and zr, you'd probably be better off with 3x3 matrix multiplication, doing the trig only when xr, yr, and zr change.
Yes, but you just filled up the cordic.. That means one point at a time. Of course adding 3D might also slow it down for 2D... so it might be one of those
things that sounds good, but isn't really all that good.
Comments
Oh boy!
btw: My head has a gimbal lock and it didn't keep me from flying a Cessna If I could have understood what the controllers were saying, I probably wouldn't have quit:)
My order of transformations is likely wrong, but you get the point.
Of course, if you wanted to do this a lot for the same values of xr, yr, and zr, you'd probably be better off with 3x3 matrix multiplication, doing the trig only when xr, yr, and zr change.
things that sounds good, but isn't really all that good.
But, but, there are only imaginary numbers