programshell - print tennisball.pos print...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
from __future__ import division from visual import * f # objects created in following lines baseball = sphere(pos=vector(-5,2,-3),radius=.4,color=color.red) tennisball = sphere(pos=vector(-3,-1,0), radius = .15, color=color.green) bt = arrow(pos=baseball.pos, axis=tennisball.pos-baseball.pos, color=color.cyan)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: print tennisball.pos print tennisball.pos-baseball.pos p t=0 while t<10: t = t+.5 print t print "End of program" theta = 0 while theta<=2*pi: print theta theta = theta+ (pi/5)...
View Full Document

This note was uploaded on 09/12/2011 for the course PHYISCS 2211 taught by Professor Jarrio during the Spring '10 term at Georgia Institute of Technology.

Ask a homework question - tutors are online