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

Comparing libgender/util.h (file contents):
Revision 1.28 by root, Fri Oct 8 09:45:25 2004 UTC vs.
Revision 1.29 by root, Fri Oct 8 09:59:25 2004 UTC

136} 136}
137 137
138inline bool operator <=(const sector &a, const sector &b) 138inline bool operator <=(const sector &a, const sector &b)
139{ 139{
140 return a.x <= b.x && a.y <= b.y && a.z <= b.z; 140 return a.x <= b.x && a.y <= b.y && a.z <= b.z;
141}
142
143inline soffs max (const sector &a)
144{
145 return max (a.x, max (a.y, a.z));
141} 146}
142 147
143inline sector translate (const sector &p, const sector &src, const sector &dst) 148inline sector translate (const sector &p, const sector &src, const sector &dst)
144{ 149{
145 return p + (dst - src); 150 return p + (dst - src);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines