moreupdates
[synfig.git] / synfig-core / trunk / src / synfig / segment.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file segment.h
3 **      \brief Template Header
4 **
5 **      $Id: segment.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_SEGMENT_H
25 #define __SYNFIG_SEGMENT_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "vector.h"
30
31 /* === M A C R O S ========================================================= */
32
33 /* === T Y P E D E F S ===================================================== */
34
35 /* === C L A S S E S & S T R U C T S ======================================= */
36
37 namespace synfig {
38         
39 /*!     \struct Segment
40 **      \todo writeme
41 */
42 struct Segment
43 {
44         Point   p1,p2;
45         Vector  t1,t2;
46
47         Segment() { }
48         Segment(Point p1,Vector t1,Point p2, Vector t2):
49                 p1(p1),
50                 p2(p2),
51                 t1(t1),
52                 t2(t2)
53         { }
54         Segment(Point p1,Point p2):
55                 p1(p1),
56                 p2(p2),
57                 t1(p2-p1),
58                 t2(p2-p1)
59         { }
60 }; // END of struct Segment
61
62 }; // END of namespace synfig
63
64 /* === E N D =============================================================== */
65
66 #endif