Skip to content
Prev 307381 / 398506 Next

3d polar coordinates in rgl function view3d()

On 12-10-08 7:12 PM, Peter Rossi wrote:
That's incorrect, see below.
Those descriptions are both incomplete.  Rotations in 3D don't commute, 
so you need to give them in order:  e.g. "first rotate by x about y, 
then rotate by z about w."

I don't remember what theta and phi correspond to in those terms, but if 
you want to get fine control, set the userMatrix member of par3d() 
explicitly.
You could also read the source code -- it's open source.
You can't, it's not polar coordinates.  It's a sequence of rotations.

Duncan Murdoch