z_uRotation.py
from pygeo import *
v=display(scale=5, camera_vector=(0,1,-1))
zpoint=zFreePoint(-2,-2,color=BLUE)
upoint=uSlider(theta=PI/3,phi=PI*2/5,color=BLUE)
rotation1=z_uRotation(upoint,zpoint,angle=PI/3,color=RED)
rotation2=z_uRotation(upoint,zpoint,angle=PI*2/3,color=RED)
#reference objects
usphere=uSphere()
#axis1=z_to_uPoint(zpoint1,color=WHITE)
axis2=uAntiPodal(upoint,color=WHITE)
up1=z_to_uPoint(rotation1,color=WHITE)
up2=z_to_uPoint(rotation2,color=WHITE)
up3=z_to_uPoint(zpoint,color=WHITE)
rLine(upoint,axis2,seg=True,color=WHITE)
rLine(usphere.N,up1,color=WHITE)
rLine(usphere.N,up2,color=WHITE)
rLine(usphere.N,up3,color=WHITE)
uCircle(up1,up2,up3,color=WHITE)
zPlane(color=MAGENTA)
v.pickloop()