Rev 2179 | Rev 2199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2179 | Rev 2184 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | 62 | ||
63 | template <typename T> point<T> operator+ (const point<T>& p1, const point<T>& p2) { |
63 | template <typename T> point<T> operator+ (const point<T>& p1, const point<T>& p2) { |
64 | return point<T> (p1.x + p2.x, p1.y + p2.y); |
64 | return point<T> (p1.x + p2.x, p1.y + p2.y); |
65 | }
|
65 | }
|
66 | 66 | ||
67 | template <typename T> struct pinpoint : point<T> { |
67 | template <typename T> struct pointinfo : point<T> { |
68 | int pin; |
68 | int pin; |
- | 69 | int carry; |
|
- | 70 | int mirror; |
|
- | 71 | void init () { pin = 0; carry = 1; mirror = 0;} |
|
69 | pinpoint () : pin(0) {} |
72 | pointinfo () { init(); } |
70 | pinpoint (const point<T>& p) : point<T> (p.x, p.y), pin(0) {} |
73 | pointinfo (const point<T>& p) : point<T> (p.x, p.y) { init(); } |
71 | }; |
74 | }; |
72 | 75 | ||
73 | #endif
|
76 | #endif
|