DropPerpendicular-example.nb

Example Cellzilla2D notebook.

GPL License applies.
See http://xlr8r.info and http://cellzilla.info for further details.

In[1]:=

DropPerpendicular-example_1.gif

DropPerpendicular-example_2.gif

In[2]:=

DropPerpendicular-example_3.gif

In[5]:=

DropPerpendicular-example_4.gif

Out[5]=

DropPerpendicular-example_5.gif

In[6]:=

DropPerpendicular-example_6.gif

Out[6]=

DropPerpendicular-example_7.gif

Returns $Failed if the perprendicular from the point to the line segment does not intersect the line segment.

In[7]:=

DropPerpendicular-example_8.gif

Out[7]=

DropPerpendicular-example_9.gif

With the 3rd argument set to True, it will find as close a perpendicular as possible, by sliding the result to the nearest endpoint.

In[8]:=

DropPerpendicular-example_10.gif

Out[8]=

DropPerpendicular-example_11.gif

Spikey Created with Wolfram Mathematica 8.0