vectors lab - #yellowarrow =...

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 #baseball = sphere(pos=vector(-5,2,-3), radius=0.40, color=color.red) #tennisball = sphere(pos=vector(-3,-1,0), radius=0.15, color=color.green) #arrow(pos=vector(-5,2,-3), axis= vector(2,-3,3), color=color.cyan) # #redball = sphere(pos=vector(4,4,-1), radius=1,color=color.red) #print tennisball.pos # #print tennisball.pos - baseball.pos #redball = sphere(pos=vector(4,4,-1), radius=1,color=color.red)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #yellowarrow = arrow(pos=vector(19,-8,6),axis=vector(11,-9,2), color=color.yellow) # baseball = sphere(pos=vector(-4,-2,5), radius=0.40, color=color.red) tennisball = sphere(pos=vector(3,1,-2), radius=0.15, color=color.green) arrow(pos=vector (baseball.pos), axis= vector(tennisball.pos - baseball.pos), color=color.cyan)...
View Full Document

This note was uploaded on 04/19/2010 for the course PHYS 2212 taught by Professor Kindermann during the Spring '09 term at Georgia Institute of Technology.

Ask a homework question - tutors are online