LineFoot.py

from pygeo import *

v=display(scale=70)

p1 = FreePoint(-33.,-33,-3,color=WHITE)
p2 = FreePoint(28,4.5,4,color=WHITE)

line=Line(p1,p2,color=BLUE)

p3 = FreePoint(-45,45,-14,color=BLUE,pointsize=1.5)

foot=LineFoot(line,p3,color=RED,pointsize=1.5)

Line(p3,foot,color=WHITE)
v.pickloop()