Edits to PointToLineDist and TrajectoryInVolume --David Caratelli