ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/util.h
(Generate patch)

Comparing libgender/util.h (file contents):
Revision 1.22 by root, Wed Oct 6 06:05:23 2004 UTC vs.
Revision 1.23 by root, Wed Oct 6 07:45:20 2004 UTC

105 if (subindex & 1) x += extent; 105 if (subindex & 1) x += extent;
106 if (subindex & 2) y += extent; 106 if (subindex & 2) y += extent;
107 if (subindex & 4) z += extent; 107 if (subindex & 4) z += extent;
108 } 108 }
109}; 109};
110
111inline const sector operator +(const sector &a, const sector &b)
112{
113 return sector (a.x + b.x, a.y + b.y, a.z + b.z);
114}
115
116inline const sector operator -(const sector &a, const sector &b)
117{
118 return sector (a.x - b.x, a.y - b.y, a.z - b.z);
119}
110 120
111inline const sector translate (const sector &p, const sector &src, const sector &dst) 121inline const sector translate (const sector &p, const sector &src, const sector &dst)
112{ 122{
113 sector r; 123 sector r;
114 124

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines