LinePerp.py

from pygeo import *

v=display(scale=70)

point1 = FreePoint(-33.,-33,-3,pointsize=1.5)
point2 = FreePoint(12,18,4,pointsize=1.5)
point3 = FreePoint(1,1,-11,pointsize=1.5)

LinePerp(point1,point2,point3,color=RED)

Line(point1,point2,color=WHITE)

v.pickloop()