zRotatingPoint.py

from pygeo import *

v=display(scale=4, camera_vector=(0,.5,-.2))

zpoint1=zFreePoint(1.5,0,color=BLUE)
zpoint2=zFreePoint(-3,-2,color=BLUE)
zrotating=zRotatingPoint(zpoint1,zpoint2,trace=True,color=RED)


#reference objects

zrotation1=zRotation(zpoint1,zpoint2,angle=PI/3,color=WHITE)
zrotation2=zRotation(zpoint1,zpoint2,angle=PI*2/3,color=WHITE)
usphere=uSphere()
axis1=z_to_uPoint(zpoint1,color=WHITE)
axis2=uAntiPodal(axis1,color=WHITE)

up1=z_to_uPoint(zpoint2,color=WHITE)
up2=z_to_uPoint(zrotation1,color=WHITE)
up3=z_to_uPoint(zrotation2,color=WHITE)

upoint=z_to_uPoint(zrotating,color=WHITE)

rLine(axis1,axis2,seg=True,color=WHITE)
rLine(usphere.N,axis1,color=WHITE)
rLine(usphere.N,upoint,color=WHITE)

ucircle=uCircle(up1,up2,up3,color=WHITE)

zPlane(grid_scale=20)

v.animate(povout=True)