fourier_4_1.h

00001 #ifndef __FOURIER_4_1__
00002 #define __FOURIER_4_1__
00003 
00004 #include "fourier_syn.h"
00005 
00006 // Observation (for k4.1)
00007 //
00008 // cosx cosy cosz sinx siny sinz
00009 //  A 0 B -B 0  A
00010 //  0 C 0  0 D  0    // maybe C = 2*D
00011 //  E 0 F  F 0 -E
00012 //  0 G 0  0 H  0    // G and H very small
00013 //
00014 // Let's try : A B C D E F  as coeff file
00015 class K41FourierKnot : public FourierKnot {
00016 
00017 public:
00018 
00019   // Constructors
00020   K41FourierKnot();
00021   K41FourierKnot(const char* file, int Normal = 0);
00022   K41FourierKnot(const K41FourierKnot &tfk);
00023 
00024   K41FourierKnot& operator=(const K41FourierKnot &fk);
00025   FourierKnot toFourierKnot();
00026   Vector3 operator()(float t) const;
00027   Vector3 prime(float t) const; 
00028 
00029   K41FourierKnot operator+(const K41FourierKnot &fk);
00030   K41FourierKnot& operator*=(const float d);
00031   K41FourierKnot& operator/=(const float d);
00032 
00033   /*
00034      I/O classes not overloaded!
00035      We use the same structure as the normal coeff file
00036      (with constant 0 0 0). This means we can use the
00037      parent classe's operator<< and operator>>.
00038   */
00039 };
00040 
00041 #endif // __FOURIER_4_1__

Generated on Mon Feb 8 17:22:35 2010 for libbiarc by  doxygen 1.5.6