proj home

Files   Classes   Functions   Hierarchy  

d2arrow.h

Go to the documentation of this file.
00001 #ifndef D2ARROW_H
00002 #define D2ARROW_H
00003 
00004 #include <print.h>
00005 #include <point.h>
00006 #include <gobj.h>
00007 
00008 
00036 class d2arrow : public gobj
00037 {
00038 public:
00039 
00041   point2<double> pi[4];
00042 
00045   static double headlengthfactor;
00046 
00047 
00049   d2arrow( doublec arrowlength, doublec headlength );
00050 
00052   d2arrow
00053   (
00054     point2<double> const & pi0,
00055     doublec theta, 
00056     doublec arrowlength, 
00057     doublec headlength
00058   );
00059 
00062   d2arrow
00063   (
00064     point2<double> const & q0,
00065     point2<double> const & q1,
00066     doublec arrowlength, 
00067     doublec headlength
00068   );
00069 
00071   void draw();
00072 
00074   void rotate(doublec theta);
00075 
00077   void translate( point2<double> const & x );
00078 
00080   void constructOnXaxis( doublec arrowlength, doublec headlength );
00081 };
00082 
00083 
00084 #endif
00085 
00086 
00087 

Generated on Fri Mar 4 00:49:27 2011 for Chelton Evans Source by  doxygen 1.5.8