synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
synfig
segment.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
21
/* ========================================================================= */
22
23
/* === S T A R T =========================================================== */
24
25
#ifndef __SYNFIG_SEGMENT_H
26
#define __SYNFIG_SEGMENT_H
27
28
/* === H E A D E R S ======================================================= */
29
30
#include "
vector.h
"
31
32
/* === M A C R O S ========================================================= */
33
34
/* === T Y P E D E F S ===================================================== */
35
36
/* === C L A S S E S & S T R U C T S ======================================= */
37
38
namespace
synfig {
39
43
struct
Segment
44
{
45
Point
p1
,
p2
;
46
Vector
t1
,
t2
;
47
48
Segment
() { }
49
Segment
(
Point
p1
,
Vector
t1
,
Point
p2
,
Vector
t2
):
50
p1(p1),
51
p2(p2),
52
t1(t1),
53
t2(t2)
54
{ }
55
Segment
(
Point
p1
,
Point
p2
):
56
p1(p1),
57
p2(p2),
58
t1
(p2-p1),
59
t2
(p2-p1)
60
{ }
61
};
// END of struct Segment
62
63
};
// END of namespace synfig
64
65
/* === E N D =============================================================== */
66
67
#endif
Generated on Mon Nov 16 2015 15:33:50 for synfig-core by
1.8.1.2