# coyote: ARCSAMPLE

- coyote/Utilities
- [Source code]

NAME

      ARCSAMPLE

PURPOSE

      Given X and Y points that describe a closed curve in 2D space,
      this function returns an output curve that is sampled a specified
      number of times at approximately equal arc distances.

AUTHOR

      FANNING SOFTWARE CONSULTING
      David Fanning, Ph.D.
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com

CATEGORY

      Utilities

CALLING SEQUENCE

      ArcSample, x_in, y_in, x_out, y_out

INPUT_PARAMETERS

      x_in:          The input X vector of points.
      y_in:          The input Y vector of points.

OUTPUT_PARAMETERS

      x_out:          The output X vector of points.
      y_out:          The output Y vector of points.

KEYWORDS

      POINTS:         The number of points in the output vectors. Default: 50.
      PHASE:          A scalar between 0.0 and 1.0, for fine control of where interpolates
                      are sampled. Default: 0.0.

MODIFICATION HISTORY

      Written by David W. Fanning, 1 December 2003, based on code supplied
         to me by Craig Markwardt.