Problem

Given a family {v1, v2, ..., vn} of n "vertical" rays emanating from a point p, and a family {h1, h2, ..., hm} of m "horizontal" rays emanating from a point q, find the shortest path along the rays from the point of intersection of v1 and h1 to the point of intersection of vn and hm.

Source code:
ShortestPathApplet.java
GraphicsUtil.java
Shripad Thite
Last modified: Thu Nov 16 22:18:45 CST 2000