Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Sources   Namespace Members   Compound Members   File Members  

curve.h

This is the verbatim text of the curve.h include file.
//$Header: /home/ben/Mapper/include/RCS/curve.h,v 6.6 2002/07/14 17:08:52 ben Exp $
#ifndef CURVE_H
#define CURVE_H
// Copyright Benedict Adamson 2002.
// This file is part of Mapper.

// Mapper is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.

// Mapper is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Mapper; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#include <vector>



#include "vector2.h"



class curve
{
   public: //Constructors and destructors.

      curve(void);

      virtual ~curve(void);

   public: //Attributes

      void shape(
         const double t,
         vector< double > &s, //output
         vector< double > &dsdt //output
         ) const;

      vector<double> shape(
         const double t
         ) const;

      void position(
         const double t,
         vector2 &p,
         vector2 &dpdt
         ) const;

      vector2 position(
         const double t
         ) const;

   public: //Relationships

      vector< vector2 * > param;

   public: //Messages

   private: //State

};



void nearest_point(
   const curve &cu,
   const vector2 &p,
   const double tol,
   const unsigned max_iter,
   double &t, //output
   double &d2, //output
   unsigned &iter //output
   );



#endif

Generated at Sun Jul 14 20:38:16 2002 for Mapper by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999