Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

Frenet.H

Go to the documentation of this file.
00001 
00013 #ifndef _FRENET_H
00014 #define _FRENET_H
00015 
00016 #include <Frame.H>
00017 
00018 namespace xchen
00019 {
00021   struct Frenet : Frame 
00022   {
00023       Frenet(const Frame& f, double kapa, double tau) : Frame(f), k(kapa), t(tau) { }
00024       Frenet() { }
00025 
00026       double k, t;
00027 
00028       friend ostream& operator <<(ostream& os, const Frenet& frt)
00029       {
00030         return
00031           os << (const Frame&) frt << endl << "curvature is " << frt.k << " and torsion is " << frt.t;
00032       }
00033   };
00034 }
00035 
00036 #endif
00037 

Generated on Wed Apr 7 21:40:49 2004 by doxygen1.2.18