GEOD2CART Convert geodesic coordinates to cartesian coord.

   PT2 = geod2cart(PT1, CURVE, NORMAL)
   CURVE and NORMAL are both [N*2] array with the same length, and
   represent positions of the curve, and normal to each point.
   PT1 is the point to transform, in geodesic  coordinate (first coord is
   distance from the curve start, and second coord is distance between
   point and curve).

   The function return the coordinate of PT1 in the same coordinate system
   than for the curve.

   TODO : add processing of points not projected on the curve.
   -> use the closest end 

   See also
   polylines2d, cart2geod, curveLength

   ---------
   author : David Legland 
   INRA - TPV URPOI - BIA IMASTE
   created the 08/04/2004.

Package: matgeom