segment.h

Go to the documentation of this file.
00001 /* === S Y N F I G ========================================================= */
00021 /* ========================================================================= */
00022 
00023 /* === S T A R T =========================================================== */
00024 
00025 #ifndef __SYNFIG_SEGMENT_H
00026 #define __SYNFIG_SEGMENT_H
00027 
00028 /* === H E A D E R S ======================================================= */
00029 
00030 #include "vector.h"
00031 
00032 /* === M A C R O S ========================================================= */
00033 
00034 /* === T Y P E D E F S ===================================================== */
00035 
00036 /* === C L A S S E S & S T R U C T S ======================================= */
00037 
00038 namespace synfig {
00039     
00043 struct Segment
00044 {
00045     Point   p1,p2;
00046     Vector  t1,t2;
00047 
00048     Segment() { }
00049     Segment(Point p1,Vector t1,Point p2, Vector t2):
00050         p1(p1),
00051         p2(p2),
00052         t1(t1),
00053         t2(t2)
00054     { }
00055     Segment(Point p1,Point p2):
00056         p1(p1),
00057         p2(p2),
00058         t1(p2-p1),
00059         t2(p2-p1)
00060     { }
00061 }; // END of struct Segment
00062 
00063 }; // END of namespace synfig
00064 
00065 /* === E N D =============================================================== */
00066 
00067 #endif

Generated on Fri Jun 23 15:20:50 2006 for synfig by  doxygen 1.4.6