ELL_SEG_PT_CLOSEST Name
ELL_SEG_PT_CLOSEST
Purpose
Find point on segment closest to a given point.
Category
Calling Sequence
ell_seg_pt_closest, p1, p2, p3, p4 Inputs
p1, p2 = Segment start and end point. in
p3 = Given point off the segment. in
Keyword Parameters
Keywords
FLAG=flag 0: closest pt is between segment endpoints.
1: Closest pt is outside segment on p1 side.
2: Closest pt is outside segment on p2 side.
COUNT=cnt Iteration counts.
Outputs
p4 = Returned point on segment closest to p3. out
Each point is a structure: {log:lon, lat:lat}.
Common Blocks
Notes
Notes: Uses ellipsoidal distances and returns result to
within 1 mm.
Modification History
R. Sterner, 2007 Aug 29
Copyright (C) 2007, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.